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 Thu, Feb 16, 2006 at 08:50:16AM +1030, Alan Modra wrote:
> On Wed, Feb 15, 2006 at 01:50:54PM -0800, H. J. Lu wrote:
> > 	PR binutils/2338
> > 	* dwarf2.c (check_function_name): New function.
> > 	(_bfd_dwarf2_find_nearest_line): Use check_function_name to
> > 	check if function is correct.
> 
> 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.

There's a bit of nasty code to do this that I added to GDB, for
basically the same reason.  It's in symfile.c:place_section.

-- 
Daniel Jacobowitz
CodeSourcery


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