This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix objcopy PE -> ELF conversion


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)
> 
> I need some PE to ELF conversion for the Cygwin port of GRUB2. The first 
> working Cygwin patch for GRUB2 includes a workaround to load the broken 
> ELF modules produced by objcopy. It would be desirable to fix this in 
> objcopy itself.
> 

There is nothing wrong with objcopy. GRUB2 should be fixed instead.
You should be to link PECOFF .o files with ELF .o files to generate
ELF executable.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]