17.01.2015 Views

Relocatable Object Module Format (OMF) Specification

Relocatable Object Module Format (OMF) Specification

Relocatable Object Module Format (OMF) Specification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Relocatable</strong> <strong>Object</strong> <strong>Module</strong> <strong>Format</strong><br />

C8H or C9H NBKPAT—Named Backpatch Record<br />

Description<br />

The Named Backpatch record is similar to a BAKPAT record, except that it refers to a COMDAT record by logical<br />

name index rather than an LIDATA or LEDATA record. NBKPAT records must immediately follow the<br />

COMDAT/FIXUPP block to which they refer.<br />

History<br />

This record is an extension to the original set of 8086 object record types. It was added for Microsoft C 7.0.<br />

Record <strong>Format</strong><br />

1 2 1<br />

C8 Record Location<br />

or C9 Length Type<br />

1 or 2 [1]<br />

[2] 2 or 4 2 or 4 1<br />

Public Offset Value Checksum<br />

Name<br />

<br />

Location Type Field<br />

Type of location to be patched; the only valid values are:<br />

0 8-bit byte<br />

1 16-bit word<br />

2 32-bit double word, record type C9H only<br />

Public Name Field<br />

[1] Microsoft LINK recognizes this field as a regular logical name index of the COMDAT record to be back patched.<br />

[2] IBM LINK386 recognizes this field as a length-preceded name of the COMDAT record to be back patched.<br />

Offset and Value Fields<br />

These fields are 32 bits for record type C8H, 16 bits for C9H.<br />

The Offset field specifies the location to be patched, as an offset into the COMDAT.<br />

The associated Value field is added to the location being patched (unsigned addition, ignoring overflow). The<br />

Value field is a fixed length (16 bits or 32 bits, depending on the record type) to make object module processing<br />

easier.<br />

Tool Interface Standards (TIS) <strong>OMF</strong> <strong>Specification</strong>, Version 1.1 67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!