Share via


ARM Linking Directives

9/7/2007

The following ARM assembly directives link other files to the current assembly.

Directive Syntax Description

EXPORT

EXPORT symbol{[FPREGARGS,DATA,LEAF]}

Declares a symbol for use at link time by other, separate object files.

FPPREGARGS defines a function that expects fp arguments passed in fp registers.

DATA defines a code-segment datum rather than a function or procedure.

LEAF causes asserts that call other functions.

Identical to the GLOBAL directive.

GET

GET filename

Includes an additional file named filename within the current file assembly.

The included file can in turn use GET directives to include more files.

When assembly of the included file is complete, assembly continues at the line following the GET directive.

GLOBAL

GLOBAL symbol{
[FPREGARGS,DATA,LEAF]}

Declares a symbol for use at link time by other, separate object files.

FPPREGARGS defines a function that expects fp arguments passed in fp registers.

DATA defines a code-segment datum rather than a function or procedure.

LEAF causes asserts that call other functions.

Identical to the EXPORT directive.

IMPORT

IMPORT symbol{
WEAK=weak-symbol, {type=n}}

Provides the assembler with a name, symbol.

The assembly does not contain a definition for symbol, but resolves it at link time to a symbol defined in a separate object file.

The routine treats symbol as a program address.

INCLUDE

INCLUDE filename

Specifies a synonym for GET.

See Also

Concepts

ARM Assembler Directives