Questions tagged [omf]

OMF (The Relocatable Object Module Format) is an object file format used primarly for software intended to run under DOS, 16-bit Windows and OS/2.

OMF (The Relocatable Object Module Format) is an object file format used primarily for software intended to run under DOS, 16-bit Windows and OS/2. Perhaps the most detailed description of the format is in Microsoft Product Support Services Application Note SS0288. Object files in this format usually have the extension ".obj". OMFormat is also used in DOS module libraries and Windows import libraries, they have file extension ".lib" in this case.

OMF is not directly executable, it is generated by compilers, assemblers or librarians and used as an input for linkers.

19 questions
13
votes
1 answer

What's the difference between the OMF and COFF format?

Recently I've been maintaining a legacy project written in VC++ 6.0. The code uses so many unique characteristics of this compiler that porting it to a more recent standard compiler has proved to be an herculean task. Among the thousands lines of…
Sambatyon
  • 3,316
  • 10
  • 48
  • 65
10
votes
1 answer

Pre-compiled Windows OMF BLAS/LAPACK?

Is there anywhere I can get pre-compiled BLAS and LAPACK binaries for Windows in OMF object format? I want to link some D language code to these. I'm aware of where I can get the relevant libs in COFF format. I'm also aware of the objconv tool,…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
7
votes
5 answers

Converting COFF lib file to OMF format

Is there any way to convert COFF library (lib file) to OMF library for using with C++Builder6 ? This coff is not just import library, it conatians some code. When I try to convert it using borland's coff2omf.exe, I get 1KB file from 15KB file.
CITBL
  • 1,587
  • 3
  • 21
  • 36
7
votes
2 answers

Linker error "contains invalid OMF record"

In C++ Builder when I compile I get [ilink32 Error] Error: 'C:\PATH\TO\A\LIB\INCLUDED\IN\THE\PROJECT\ALIBRARY.LIB' contains invalid OMF record, type 0x21 (possibly COFF) When I convert .lib with utilities coff2omf, new lib looses significant…
Yaroslav Vozyka
  • 71
  • 1
  • 1
  • 2
4
votes
2 answers

OMF format to COFF format

is there any tool like Borland "coff2omf.exe"for converting Borland OMF LIB format to MS VC++ COFF LIB format ? actually i want to create .obj file in delphi and use that in MSVC++ .
Behrooz
  • 684
  • 1
  • 9
  • 19
3
votes
1 answer

fish shell shows error in piping - new error

I am getting multiple errors from shell init scripts which more or less seem the same: ~/.local/share/omf/pkg/z/functions/z.fish (line 11): Expected a string, but instead found a pipe ' bash $argv ^| read -l Z_PWD I looked at all the files that are…
ShankarSwamy
  • 106
  • 1
  • 9
2
votes
0 answers

Need to convert OMF file to ELF file format

I'm using a Keil C51 tool to compile my firmware which outputs a .obj file (I'm writing firmware for an 8051). However, I'm looking towards using another tool to debug the firmware which only takes in elf or dwarf files as an input. So I was…
user3547407
  • 187
  • 1
  • 12
1
vote
0 answers

unable to find jvcore.bpi when linking

I use C++Builder (RAD Studio Professional). I have tried installing the JEDI libraries, both though GetIt and GitHub, both giving the same result: "file not found". I tried searching for the file in the system, and found it in the installation…
Chris Kay
  • 61
  • 4
1
vote
2 answers

fish shell + omf + git plugin: how to customize the prompt in the terminal

I have fish shell with omf with agnoster theme and git-plugin installed. I would like to tune my prompt a bit. Does anyone here know where/how I do that. I ran fish_config; but that did not show my current prompt properly. So I am reluctant to go…
ShankarSwamy
  • 106
  • 1
  • 9
1
vote
1 answer

Bobthefish no longer displaying correctly for Mercurial (works fine for git)

I'm new to Mac (macos High Sierra) and have just discovered fish, Oh My Fish, and especially the bobthefish theme. It worked perfectly with Mercurial after I installed it but after a single reboot now I've lost all the colours, indication of source…
Hadden Uff
  • 99
  • 2
  • 10
1
vote
1 answer

How can I change the newline code for fish shell

I'm using windows 10 and installed cmder, using the fish shell with omf Theme fishface. But every new row, it will show a new row Mark as this picture. Screenshot for new row mark How can I get rid of this mark? ** didn't work if I change to another…
Ben
  • 411
  • 3
  • 17
1
vote
0 answers

Can microsoft compiler cl.exe compile to OMF object type instead COFF?

I want to link object file created by cl.exe with another object file which is in format OMF using third party linker. That third party linker does not accept COFF format. I want to know if cl can make objects in OMF format?
Wafeeq
  • 869
  • 1
  • 16
  • 34
1
vote
1 answer

OMF(Object Module Format) length field appears incorrect

I am a little confused, with the PUBDEF record in the OMF object format. My assembler has generated a result which states the record is 4000 bytes, when it clearly is not so why would it do this? Image of Hex view of OMF The 0xa0 and 0x0f is the…
NibbleBits
  • 124
  • 7
1
vote
1 answer

Linker error “contains invalid OMF record” 2

I'm working with Embarcadero XE8 C++ builder 32 bit. I was adding a library to my program for solving the Unresolved external error. When I added the library I got the error as in the title. So I searched the web and found this topic on…
Bart
  • 717
  • 1
  • 9
  • 28
0
votes
1 answer

How to override a fish_prompt function from a omf theme

I lost some time on it so I'm creating this Q&A. I'm using an omf theme and I would like to make a change in the theme prompt. Unfortunately, the change I want to do is not possible by setting the theme config variables. I tried to edit fish_prompt…
1
2