This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]