[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/990] "nm -l" doesn't work well on data symbols in relocatable fi
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/990] "nm -l" doesn't work well on data symbols in relocatable files |
Date: |
4 Jun 2005 14:18:49 -0000 |
------- Additional Comments From hjl at lucon dot org 2005-06-04 14:18 -------
It has nothing to do with "ld -r". The problem is "nm -l" doesn't work well
on .o file:
# nm -l t1.o
00000000 T main /user/hjl/bugs/binutils/debug/t1.c:5
00000000 D test1_v1 /user/hjl/bugs/binutils/debug/t1.c:5 -> should be 1
00000004 D test1_v2 /user/hjl/bugs/binutils/debug/t1.c:5 -> should be 2
00000008 D test1_v3 /user/hjl/bugs/binutils/debug/t1.c:5 -> should be 3
nm uses bfd_find_nearest_line to find line number. It is address based and
doesn't work well on data symbols in relocatable file where data and text
sections can have same addreses. We need something like
bfd_find_nearest_line_by_symbol.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl at lucon dot org
Summary|debug symbols error |"nm -l" doesn't work well on
| |data symbols in relocatable
| |files
http://sources.redhat.com/bugzilla/show_bug.cgi?id=990
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/990] New: debug symbols error, qunyingpan at yahoo dot com, 2005/06/02
- [Bug ld/990] "nm -l" doesn't work well on data symbols in relocatable files,
hjl at lucon dot org <=
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, hjl at lucon dot org, 2005/06/04
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, hjl at lucon dot org, 2005/06/05
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, hjl at lucon dot org, 2005/06/05
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, george at mvista dot com, 2005/06/06
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, hjl at lucon dot org, 2005/06/06
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, george at mvista dot com, 2005/06/06
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, qunyingpan at yahoo dot com, 2005/06/06
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, george at mvista dot com, 2005/06/06
- [Bug ld/990] "nm -l" doesn't work well on relocatable files, hjl at lucon dot org, 2005/06/06