This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objcopy of coff-i386 to elf32-i386?
- To: Lachlan O'Dea <lodea at vet dot com dot au>
- Subject: Re: objcopy of coff-i386 to elf32-i386?
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 13 Sep 2000 10:57:32 -0700
- Cc: binutils at sources dot redhat dot com
- References: <20000913145646.A663@vet.com.au>
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.