Mail Archives: djgpp/2001/04/17/06:32:10
On Tue, 17 Apr 2001, Lawrence Rust wrote:
> There's a couple of extra wrinkles to this though. Microsoft and GNU differ
> about the format of relocation records in COFF files. As a result of this:
>
> 1. A call to an external subroutine from the assembler code is incorrectly
> fixed up by ld (the linker).
>
> 2. References to local static data are incorrectly fixed up by ld.
>
> To overcome these problems the COFF file produced by MASM must be patched
> before linking.
Then how come Tom's program worked?
I'm hearing these two different types of reports for quite some time
now. Some people tell that they can link MASM-produced COFF object files
with no problems, others tell that the relocations are wrong and must be
patched manually. It almost sounds as if there are two different
versions of MASM out there.
Perhaps someone could set the record straight once and for all.
TIA
> I wrote a simple utility to do this which can be downloaded
> (with C source) from www.softsystem.co.uk/masm2djg.zip
Please consider uploading it to DJ Delorie's server (see section 22.8 of
the DJGPP FAQ for the details), so that your utility could be put on
SimTel.NET mirrors, where all DJGPP users could easily get it, even if
your home page somehow becomes invalid. Thanks.
- Raw text -