From: Luke Anthony Hutchinson Newsgroups: comp.lang.asm.x86,comp.os.msdos.djgpp Subject: MASM v6.11 COFF files & DJGPP Date: Tue, 24 Sep 1996 13:10:45 +1000 Organization: Basser Dept of Computer Science, University of Sydney, Australia Lines: 20 Message-ID: <32475134.1366@ug.cs.su.oz.au> NNTP-Posting-Host: ugrad.ug.cs.su.oz.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Has anyone had any success linking COFF files created by MASM v6.11 with DJGPP v2.? I have found some rather nasty bugs when attempting it, eg: when you try to access a variable in your asm code, the address after linking is ALWAYS the start of the segment, not the address of the variable you want. This problem seems to be with DJGPP not MASM, since the disassembled COFF file addresses the variables correctly. After a lot of headaches in finding and working around this problem, I still have trouble with the final executable, it is _extremely_ unstable, eg: FSDB has a GPF when trying to load a.out, unless I comment out the line XOR EAX,EAX in my code. Something is definately not right here. If anyone has had success linking MASM COFF files with DJGPP I would really like to know how you got around all these problems, or if didn't you encounter any of them? BTW, please CC me directly with your response. Thanks in advance Luke