objcopy of coff-i386 to elf32-i386?

H . J . Lu hjl@lucon.org
Wed Sep 13 10:57:00 GMT 2000


On Wed, Sep 13, 2000 at 02:56:46PM +1100, Lachlan O'Dea wrote:
> Hi, I'm not sure if "user" questions like this are on-topic here, but
> here goes...
> 
> I'm trying to port an application from Win32 to Unix (Linux
> initially). Most of the code is C and C++ which I've got to compile
> under Linux without too much trouble. However, some of the code is
> written for MASM, and can't be easily re-written. So what I've done is
> build binutils 2.10 with support coff-i386 in addition to elf.
> 
> So I took the various coff-i386 object files produced by MASM and put:
> 
> objcopy --remove-leading-char \
> 	--input-target=coff-i386 --output-target=elf32-i386 \
> 	$(COFFDIR)/$*.obj $*.o
> 

That never worked. If it did, it did by accident. Please read the
updated documentation from sourceware or my Linux binutils. Basically,
you can only use objcopy on fully linked files. You can mix .o files
in the final link.


H.J.


More information about the Binutils mailing list