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: (windres) linking VisualC++ ``coff'' objects under Linux?


"H . J . Lu" <hjl@lucon.org> writes:

> Here it is. The binary rpm supports linking MS COFF .obj files under
> Linux. But you may have to run
> 
> # objcopy --remove-leading-char 
> 
> on the MS COFF .obj files first before linking them under Linux.

yahoo it works.

The binary RPM is ok but for some reason the default configured executables
from binutils-2.10.0.12.tar.gz archive do not 
(answer is File format not recognized)

Looks like black magic but using --remove-leading-char to first remove the 
leading underscores, I could get from ld a running executable calling trivial
functions using int and double types, and simple malloc/free. One
symbol was missing called _chkesp I implemented with
void _chkesp() {}

Why can't I objcopy from MSVC coff to elf32-i386? Anyways now that
I can link nicely the answer is just for sport

Why did you choose to overwrite objects with objcopy without warning
even if the user sets them read-only?

Thanks a lot!

-- 
Emmanuel Michon

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