jkmcnk / sx-gcc

The GNU Compiler Collection port to NEC SX CPU architecture.
GNU General Public License v2.0
0 stars 2 forks source link

line number info is not integrated correctly #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
right now, line no. entries are parsed and internally stored correctly.
however:

1. nm does not print symbol line numbers correctly,
2. objdump does not print line number info.

probably a problem with coff_find_[nearest_]line().

Original issue reported on code.google.com by jmoc...@gmail.com on 4 Aug 2008 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by jmoc...@gmail.com on 4 Aug 2008 at 1:17

GoogleCodeExporter commented 8 years ago
fixed a bfd bug with handling lineno entries. lineno entries for extern symbols 
work.
others don't.

Original comment by jmoc...@gmail.com on 5 Aug 2008 at 10:57

GoogleCodeExporter commented 8 years ago
lineno entry handling depends on aux entries being parsed (issue 4) correctly.

Original comment by jmoc...@gmail.com on 5 Aug 2008 at 11:31

GoogleCodeExporter commented 8 years ago
line numbers work
1. fine for defined .text symbols (functions, .bf, .ef)
2. need to test for defined .data symbols (produce data section lineno entries 
with sxcc)
3. does not work for undefined .text or .data symbols (i.e. referenced external 
vars
or funcs)

note: probably relocations need to be resolved before (3) can work at all.

Original comment by jmoc...@gmail.com on 5 Aug 2008 at 1:56

GoogleCodeExporter commented 8 years ago
relocations are not fully supported. need docs on relocations, though.

Original comment by jmoc...@gmail.com on 3 Sep 2008 at 10:59

GoogleCodeExporter commented 8 years ago

Original comment by jmoc...@gmail.com on 29 Sep 2008 at 7:03