#1 2020-06-06 11:49:05

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Converting .obj files from format COFF to OMF

I'm trying to link some Rust code compiled .obj files to Delphi 7.

But Rust's .obj uses the COFF format.

D7 needs the old OMF .obj format.

I have found in StackOverflow that @ab have made this convertion some time ago.

I have tried the same utility but don't know the right parameters.

@ab can you give me some help about the command line parameters when doing this type of convertion?

Offline

#2 2020-06-06 12:42:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,546
Website

Re: Converting .obj files from format COFF to OMF

Did you try objconv -fomf32 ?
But I guess it may not be enough. Perhaps Rust has some more dependencies.
Then use objconv -fasm and see the dependencies (external functions needed).

Offline

#3 2020-06-06 13:13:41

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Re: Converting .obj files from format COFF to OMF

Yes i tried -fomf32, but the D7 compiler says that the resulting .obj is a bad format.

I will see what -fasm will tell.

Offline

Board footer

Powered by FluxBB