Assembler Directives and Pseudo-Operations

.EXPORT Directive

.EXPORT Directive

The .EXPORT directive allows symbols to be defined in one program and used in other programs.

Syntax

.EXPORT symbol [ , type] [ , argument-description] ...

Parameters

symbol

The name of an identifier whose definition is being

 

exported or imported.

type

A linker symbol type that can take one of the following

 

values:

 

 

ABSOLUTE

Designates an absolute symbol.

 

 

In PA-RISC 2.0W (64-bit mode)

 

 

ABSOLUTE symbols map to

 

 

STT_NOTYPE with a section index of

 

 

SHN_ABS.

 

DATA

Designates a data symbol.

 

 

In PA-RISC 2.0W (64-bit mode) DATA

 

 

symbols map to STT_OBJECT.

 

CODE

Designates a code location. The

 

 

location can not be a procedure entry.

 

 

In PA-RISC 2.0W (64-bit mode) CODE

 

 

symbols map to STT_OBJECT.

 

ENTRY

Designates the entry point of a

 

 

procedure.

 

 

In PA-RISC 2.0W (64-bit mode)

 

 

ENTRY symbols map to STT_FUNC.

 

MILLICODE

Locates code for the entry point of a

 

 

millicode routine.

Chapter 4

85