This is the mail archive of the binutils@sources.redhat.com 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]

Re: objcopy of coff-i386 to elf32-i386?


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.

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