4.11 PC-relative addressing

ARM® syntax assembly and GNU syntax assembly provide different methods for performing PC-relative addressing.

ARM syntax

ARM syntax assembly provides the symbol {pc} to let you specify an address relative to the current instruction.
For example:
ADRP x0, {pc}

GNU syntax

GNU syntax assembly does not support the {pc} symbol. Instead, it uses the special dot "." character, as follows:
ADRP x0, .
Related information
GNU Binutils - Using as: The Special Dot Symbol
armasm User Guide: Register-relative and PC-relative expressions
Non-ConfidentialPDF file icon PDF versionARM DUI0742F
Copyright © 2014-2016 ARM. All rights reserved.