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: RFC: Change in dwarf2dbg using sizeof_offset


Brian Dessent <brian@dessent.net> wrote on 30.07.2008 16:40:42:

> "H.J. Lu" wrote:
> 
> > Please find out how Linux/x86-64 deals with it.  You may need to
> 
> It's not really a fair comparison because on ELF targets the DWARF
> sections can have their VMA set to 0 and so relocs aren't necessary. 
> This isn't possible on PE which requires that the debug sections be laid
> out with nonzero VMA even though they aren't marked ALLOC or LOAD, which
> necessitated the .secrel32 (and now .secrel64 it seems) op.

Yes, on PE (and PE+) (see gcc/config/cygming.h for details) there is no 
way to set VMA to zero and avoid those relocations. I found additionally a 
bug in strip, which removes the debug sections, but let the relocations 
remaining in .reloc for PE and PE+.

Regards,
 i.A. Kai Tietz

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.


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