[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-de
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-debuglink" |
Date: |
30 Sep 2005 15:25:31 -0000 |
------- Additional Comments From nickc at redhat dot com 2005-09-30 15:25
-------
Subject: Re: New: objcopy trashes PE executable when using
"add-gnu-debuglink"
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
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1391
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.