Date: Tue, 17 Apr 2001 14:34:04 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Using MASM generated COFF files with GPP (solution) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.