Relocatable Object Module Format - Wikipedia, the free encyclopedia

From Wikipedia, the free encyclopedia

The Relocatable Object Module Format is an object file format used primarily for software intended to run on Intel 80x86 microprocessors. It was originally developed by Intel under the name Object Module Format, and is perhaps best known to DOS users as a .OBJ file. It has since been standardised by the Tool Interface Standards Committee.

Relocatable Object Module Format
Filename extension Developed by Tool Interface Standards Committee Type of format Object file

The file format differs very much from other object file formats. Most other object file formats (like COFF which is used on modern Microsoft Windows variants) use a file header and different tables (such as the relocation table). These tables are either stored on fixed positions in the file (like in the a.out format) or pointers to the tables are used (like in the ELF format). The data of the "sections" (e.g., code, data area, ...) are stored as contiguous area of bytes within such files. The Relocatable Object Module Format (OMF) however consists of so-called records that have the following format: 1 byte record type (e.g. relocation information) 2 bytes data length (N+1) N bytes data (depending on the record type) 1 byte checksum or 0 There are no file offsets (like a pointer to a symbol table) in the file. Therefore a linker must parse all entries (records) of the object file to get information about it. Unlike other object file formats in the OMF format data of one section (e.g., code) is not represented as contiguous bytes in the file. Instead the data of one section (e.g., the code section) can be represented by multiple records. The file format specification (version 1.1) says that this must be done for sections larger than 1KiB. Records with relocation information (fixups) must be stored between the data records of a section so the section data and the relocation information is "mixed" in the file. The file format provides special records that allows compression of repeating data sequences in an object file. It also provides the possibility to store the symbol name of the entry point of the later executable file in one object file. The file format can also be used as library file format.

The file format was the most important object file format under DOS, 16-bit Windows and OS/2. The format also supports 32-bit code; however only few tool chains use the 32-bit version of the OMF format. The Watcom C tool chain is one of the rare examples. This tool chain allows generating code for targets that use 32-bit segmented memory layouts. Because most other object file formats do not support segmentation Watcom C uses the OMF file format.


2012. 02. 20. 9:32

9:32 .php?title=Relocatable_Object_Module_Format& oldid=387133968" Categories: Executable file formats Computer file formats This page was last modified on 26 September 2010 at John See Terms of use for details. the free encyclopedia http://en. Levine.html) .pdf) Retrieved from "http://en.Relocatable Object Module Format .com /linker/linker03. additional terms may apply.1. Text is available under the Creative Commons Attribution-ShareAlike License..wikipedia.html.iecc. /OMF_v1. Retrieved 2007-01-02.iecc. Wikipedia® is a registered trademark of the Wikimedia Foundation.wikipedia. TIS Relocatable Object Module Format specification (http://pagesperso-orange.Wikipedia. http://www. 02. 2/2 2012. a non-profit organization. 20. "Linkers and Loaders" (http://www.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.