This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Change in dwarf2dbg using sizeof_offset
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: binutils at sourceware dot org
- Cc: Alan Modra <amodra at bigpond dot net dot au>, binutils at sourceware dot org, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Wed, 30 Jul 2008 16:52:28 +0200
- Subject: 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.