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] A 64-bit address does not imply 64-bit DWARF2 offsets.


Hi Carlos,

2007-02-21 Carlos O'Donell <carlos@codesourcery.com>

	* dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
	DWARF even with 64-bit addresses.
	(_bfd_dwarf2_find_nearest_line): Likewise.


Approved - please apply.


Actually it might be a good idea to extend the new comment to explain why we assume 32-bit debug info on a 64-bit target. eg:

  /* In the absence of the hints above, we assume 32-bit DWARF2
     offsets even for targets with 64-bit addresses, because:
       a) most of the time these targets will not have generated
          more than 2Gb of debug info and so will not need 64-bit
          offsets,
     and
       b) if they do use 64-bit offsets but they are not using
          the size hints that are tested for above then they are
          not conforming to the DWARF3 standard anyway.  */

Cheers
  Nick


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