|
From: | Nick Clifton |
Subject: | Re: [Bug binutils/1391] New: objcopy trashes PE executable when using "add-gnu-debuglink" |
Date: | Fri, 30 Sep 2005 16:34:32 +0100 |
User-agent: | Mozilla Thunderbird 1.0 (X11/20041206) |
Hi,
Idx Name Size VMA LMA File off Algn 0 .gnu_debuglink 00000018 00000000 00000000 00000268 2**2
When using a native win32 "PE" editor/format tool like "LordPE" it lists some crap for the first section (containing debug link), all other sections seem ok:
Seems objcopy is messing up the PE section table while adding gnu debug link.
I seem to recall that the PE file format does not allow sections to start at address 0 and that this causes problems for debug sections.
Probably the simplest way to fix this problem is to amend the PE linker script (ld/scripttempl/pe.sc) and add an explicit entry for the .gnu_debuglink section.
If this works, please could you submit a patch so that we can apply it to the mainline sources.
Cheers Nick
[Prev in Thread] | Current Thread | [Next in Thread] |