Alias Declaration Directives

The .alias directive declares an alias for a label, a function name, or a symbolic constant. This directive can be used to reference an external symbol whose name is not legal in the assembly language. The .alias directive has the following format:

.alias  symbol,"alias"

Where:

symbol

Represents a symbol name that the assembler can recognize. This name must be a valid name for the type of symbol.

"alias"

Represents a string constant, which is the name the assembler exports to the object file symbol table.

 

The .secalias directive declares an alias for a section name. This directive can be used to reference an external section whose name is not valid in the assembly language. The .secalias directive has the following format:

.secalias  section-name,"alias"

Where:

section-name

 Represents a section name that the assembler can recognize. This name must be a valid name for the type of section.

"alias"

Represents a string constant, which is the name the assembler exports to the object file symbol table.