Assembler Directives and
.EXPORT Directive
.EXPORT Directive
The .EXPORT directive allows symbols to be defined in one program and used in other programs.
Syntax
.EXPORT symbol [ , type] [ ,
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 |
|
| ABSOLUTE symbols map to |
|
| STT_NOTYPE with a section index of |
|
| SHN_ABS. |
| DATA | Designates a data symbol. |
|
| In |
|
| symbols map to STT_OBJECT. |
| CODE | Designates a code location. The |
|
| location can not be a procedure entry. |
|
| In |
|
| symbols map to STT_OBJECT. |
| ENTRY | Designates the entry point of a |
|
| procedure. |
|
| In |
|
| ENTRY symbols map to STT_FUNC. |
| MILLICODE | Locates code for the entry point of a |
|
| millicode routine. |
Chapter 4 | 85 |