This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] fix objcopy PE -> ELF conversion
- From: Daniel Jacobowitz <drow at false dot org>
- To: Christian Franke <Christian dot Franke at t-online dot de>
- Cc: binutils at sourceware dot org
- Date: Tue, 23 Oct 2007 07:37:14 -0400
- Subject: Re: [PATCH] fix objcopy PE -> ELF conversion
- References: <471CF3CF.6010008@t-online.de>
On Mon, Oct 22, 2007 at 09:02:39PM +0200, Christian Franke wrote:
> Objcopy cannot convert pe-i386 to elf32-i386. The offsets of the pc-relative
> relocation entries are not converted properly.
> (http://sourceware.org/bugzilla/show_bug.cgi?id=970)
As HJ said, this should be done in BFD, not in objcopy.c. Maybe the
generic BFD_RELOC_32_PCREL should not be used for the slightly
different PE semantics? That'd prevent BFD making the conversion.
--
Daniel Jacobowitz
CodeSourcery