Next: ARC Symbols, Previous: ARC Directives, Up: ARC-Dependent [Contents][Index]
The following additional assembler modifiers have been added for position-independent code. These modifiers are available only with the ARC 700 and above processors and generate relocation entries, which are interpreted by the linker as follows:
@pcl(symbol)
Relative distance of symbol’s from the current program counter location.
@gotpc(symbol)
Relative distance of symbol’s Global Offset Table entry from the current program counter location.
@gotoff(symbol)
Distance of symbol from the base of the Global Offset Table.
@plt(symbol)
Distance of symbol’s Procedure Linkage Table entry from the current program counter. This is valid only with branch and link instructions and PC-relative calls.
@sda(symbol)
Relative distance of symbol from the base of the Small Data Pointer.