From: "Paul Hooper" Newsgroups: comp.os.msdos.djgpp Subject: HELP w/MASM COFF files/linking needed Date: 26 Feb 1997 01:55:22 GMT Organization: Exec-PC BBS Internet - Milwaukee, WI Lines: 25 Message-ID: <01bc2388$398b0db0$7c29cfa9@p590> NNTP-Posting-Host: congo.execpc.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hello: I am trying to get some C code and assembly code to properly link together. The C code is compiled using GCC and the assembly code was compiled using MASM 6.11 using the /coff option to get coff ouput files. I was indeed able to link everything okay after some fiddling, but the program crashes. I stepped through it using FSDB and found that when the program reaches the first place in the code where it does a CALL func to a function func in one of the MASM produced files, it in fact is not calling func as specified in the source code, Instead there is garbage in the label field in place of the correct label. Does anyone have any ideas here as to what may be happening? Could the problem be that the coff files produced by DJGPP are slightly different than those produced by the MASM611? Microsoft documentation states that the MASM6.11 coff files are in Windows NT compatible common object file format. If in fact they are different, is there anything I can do about it? Is there anywhere where I can find more detailed info on the structure of DJGPP coff files? Is there a way I can tell GCC to treat a COFF file differently? Any ideas greatly appreciated. Thank you. Paul Hooper unitech AT execpc DOT com