This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/2338: objdump -d -l doesn't work correctly
On Mon, Feb 20, 2006 at 03:21:21PM +0100, Eric Botcazou wrote:
> > > OK. A nicer solution might be to change vmas of sections in relocatable
> > > object files so that none overlap, before calling
> > > _bfd_dwarf2_find_nearest_line.
>
> That might indeed be necessary because I think HJ's patch only fixes half of
> the problem in _bfd_dwarf2_find_nearest_line: bogus line numbers are indeed
> not returned anymore but nothing is returned for most of the functions with
> -ffunction-sections for example.
>
Are you really sure that it isn't a gcc bug? "objdump -d -l" works
fine with -ffunction-sections for me. Do you have a testcase?
H.J.