PATCH: ld/2338: objdump -d -l doesn't work correctly

Daniel Jacobowitz drow@false.org
Tue Feb 21 02:57:00 GMT 2006


On Tue, Feb 21, 2006 at 12:32:26AM +0100, Eric Botcazou wrote:
> > _bfd_dwarf2_find_nearest_line can't tell the line number when more
> > than one lines have the same address.
> 
> Yes, that was also the underlying problem with objdump -d -l.
> 
> > I will see if I can implement Dan's approach when I find the time.
> 
> Clearly the way to go.  But since the relocations are not yet resolved in the 
> debug info sections, I think you'll have to resolve them manually.

If only GDB had some code for that problem too! :-)  See
symfile_relocate_debug_section, which sets some other offsets
and calls bfd_simple_get_relocated_section_contents.

Note, these two don't always play well together - I just got a bug
report about that.  But in binutils this shouldn't be a big problem.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list