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 />

C6H ALIAS—Alias Definition Record<br />

Description<br />

This record has been introduced to support link-time aliasing, a method by which compilers or assemblers may<br />

direct the linker to substitute all references to one symbol for another.<br />

History<br />

The record is an extension to the original set of 8086 object record types for FORTRAN version 5.1 (Microsoft<br />

LINK version 5.13).<br />

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

1 2 1<br />

C6 Record Length Alias Name Substitute Name Checksum<br />

<br />

Alias Name Field<br />

A regular length-preceded name of the alias symbol.<br />

Substitute Name Field<br />

A regular length-preceded name of the substitute symbol.<br />

Notes<br />

This record consists of two symbolic names: the alias symbol and the substitute symbol. The alias<br />

symbol behaves very much like a PUBDEF in that it must be unique. If a PUBDEF of an alias symbol<br />

is encountered later, the PUBDEF overrides the alias. If another ALIAS record with a different<br />

substitute symbol is encountered, a warning is emitted by most linkers, and the second substitute<br />

symbol is used.<br />

When attempting to satisfy an external reference, if an ALIAS record whose alias symbol matches is<br />

found, the linker will halt the search for alias symbol definitions and will attempt to satisfy the reference<br />

with the substitute symbol.<br />

All ALIAS records must appear before the Link Pass 2 record.<br />

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

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

Saved successfully!

Ooh no, something went wrong!