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: merge src and gcc copies of dwarf2.h


On Mon, Jun 29, 2009 at 05:59:18PM -0600, Tom Tromey wrote:
> >>>>> "Ian" == Ian Lance Taylor <iant@google.com> writes:
> 
> >> +  tem = ((unsigned int) loc->dw_loc_opc << 1) | loc->dtprel;
> >> +  CHECKSUM (tem);
> 
> Ian> This appears to change the checksum, which probably doesn't matter too
> Ian> much, but since it can appear in a .o file it seems to me that we might
> Ian> as well keep the same checksum, as in
> Ian>   tem = (loc->dtprel << 8) | ((unsigned int) loc->dw_loc_opc);
> 
> Oops, I did not realize this could end up in the .o.
> 
> Ian> This patch is OK for gcc with that change.
> 
> Thanks.  I made this change and will check it in soon.
> I'll post the corresponding src patch sometime soon.

BTW, why is it <elf/dwarf2.h>, rather than just <dwarf2.h>?  What is ELF
specific on DWARF2/3/4?
By putting dwarf2.h right into include/ rather than include/elf/, we could
avoid issues with combined src+gcc trees.

	Jakub


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