This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFA: Debug sections seems to be emitted wrong for pe-coff
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- Cc: Kai Tietz <ktietz70 at googlemail dot com>, Binutils <binutils at sourceware dot org>, Christian Joensson <christian dot joensson at gmail dot com>
- Date: Mon, 22 Jun 2009 20:26:11 +0100
- Subject: Re: RFA: Debug sections seems to be emitted wrong for pe-coff
- References: <90baa01f0906220818p7d1d806foa83eb4121b2960b5@mail.gmail.com> <4A3FD5BD.4020808@gmail.com>
Dave Korn wrote:
> Kai Tietz wrote:
>
>> I noticed that some days ago (the version on the 12th of June worked
>> proper) the executables containing debugging information seems to be
>> broken.
Ok, this doesn't reproduce for me, at least with a trivial "hello world"
testcase using gcc-4.3.2 -g -O2. What version are you using? If you're using
GCC HEAD, this could be related to PR40493.
>> By inspecting the generated executable by objdump, I see that
>> all debugging sections don't have the LOAD flag set. As there are
>> relocations in debug sections OS pe-loader rejects to load such an
>> image.
It's entirely normal for debug sections not to have the LOAD flag set, you
don't want them loaded at runtime; what must have changed is that something is
causing them to have relocs now, when they didn't before?
cheers,
DaveK