Mail Archives: djgpp/1994/06/17/09:20:50
This is something I have just discovered -
If you have MASM 6.11, (ie: the one that is NT aware rather than OS/2
aware), then simply give it the '-coff' switch to generate objects
that are linkable with GNU ld.
This is exceedingly useful, since it keeps my asm source files compatible
between DJGPP, Watcom, Symantec, and Microsoft. - previously I was using
'wdisasm -au | sed' to convert .obj to .s, and then reassemble, but this
was very flakey.
In general, if you want to convert an Intel/Microsoft object file to
coff, you can use LIB32 from Microsoft C8 to put it into a library, and
then extract it again. LIB32 converts input files to coff.
------------------------------------------
Sam Littlewood sam AT argonaut DOT com
Argonaut Software Ltd. saml AT cix DOT compulink DOT co DOT uk
Tel: +44 81 200 5777 Fax: +44 81 200 9866
- Raw text -