Hi friends,

How would be to use tools producing OMF code (Tasm,Sphinx C--,Digital Mars) with GoLink?
Here is am simple omf2coff tool for you.
Note that MS Link accepts OMF code,I intented this tool for peoples who desires to use the
tools mentioned with GoLink (GoLink is a COFF linker.)
You need to have MS Link.exe at the c:\masm32\bin folder for the omf2coff tool.
You can change this path to link.exe by modifying the source file omf2coff.asm

Many thanks to Randall Hyde and Bushpilot for their suggestions.:alright:

PS:The example C source file in the attachment from:

Posted on 2003-07-05 06:39:06 by Vortex
Here are new examples for Sphinx C-- and Tasm.

Attachment uploaded

I removed some unnecessary include files from the Sphinx C-- sample.
Posted on 2003-07-21 09:54:13 by Vortex
Here is an improved version functionning much more efficiently.
+Included an example of LzASM.
Posted on 2003-10-20 12:31:38 by Vortex

great tool! :alright:

that tool can be used with the elf linker i coded. create your linux program with tasm, convert the obj to coff, and then link :)

now i can skip version 0.2, and recode my tool in tasm syntax :grin:

Posted on 2003-10-20 20:29:44 by ancev
Great :alright:
Posted on 2003-10-20 20:36:03 by BogdanOntanu
Hello. I'm really sorry that I move up such an old topic, but I can't find omf2coff here :? Could I ask somebody to share it with me? Please.

If you have this tool, mail it to me - asutp pisem net
Or post it here if possible.

Thank you very much :)
Posted on 2004-12-13 05:48:34 by fp_
Hi fp_ ,

Welcome to the forum.

For your information, I posted the tool to your e.mail address.
Posted on 2004-12-13 12:27:45 by Vortex
Isn't OMF->COFF as simple as running editbin.exe on the OMF? (which in turn runs link.exe ...)
Posted on 2004-12-13 12:29:47 by f0dder
Isn't OMF->COFF as simple as running editbin.exe on the OMF? (which in turn runs link.exe ...)

No need for that, you can simply type
link -edit omffile.obj

to run directly the linker doing the conversion job. My little tool does the same thing.
Posted on 2004-12-13 12:39:02 by Vortex
Guess what commandline editbin.exe uses? ;-)
Posted on 2004-12-13 12:52:28 by f0dder
Guess what commandline editbin.exe uses? ;-)

Yes fodder, I am aware of that :)

A tool with a name like omf2coff looks more sympathic, that was my modest intention. :)
Posted on 2004-12-13 13:34:57 by Vortex
has any one got a coff 2 omf cos tthen i can write libs for delphi in asm
Posted on 2004-12-13 17:18:38 by Retsim_X
Doesn't borland come with such a tool? Otherwise, check http://www.digitalmars.com/ctg/coff2omf.html (and download the full digital mars toolset) - alternatively, google.
Posted on 2004-12-13 17:21:53 by f0dder

Here is the link for the coff2omf tool:

Posted on 2004-12-14 04:52:20 by Vortex


ml /nologo /c /omf Something.asm

EliCZ's tool

omf2d Something.obj Something.obj


{$L Something.obj}
Posted on 2004-12-14 14:57:52 by drizz
I want to download the omf2coff tool but the attachments was gone and I can't find it elsewhere. Vortex, perhaps you can upload it to somewhere? You can send it to my mail too: skylon456 at hotmail dot com

Thanks a lot.
Posted on 2004-12-22 09:48:08 by Skylon
Skylon, you don't need any tool to do it - just use "editbin" included with masm+link, or use "link -edit file.obj".
Posted on 2004-12-22 10:13:11 by f0dder
Thanks for the fast reply. Actually I just thought there is a standalone version.
Posted on 2004-12-22 10:46:56 by Skylon
Nah, Vortex's tool calls link.exe too. There *are* some standalone coff->omf and omf->coff tools around, but... whatever :)
Posted on 2004-12-22 12:07:40 by f0dder
Hi Skylon,

I posted you the tool.
Posted on 2004-12-22 13:08:54 by Vortex