aarch64 assembler adds PC-relative PAuth_LR instructions
New PC-relative `PAuth_LR` instructions with `imm16` operands are added to the aarch64 assembler, supporting `AUTIA` and `RETA` variants.
The aarch64 assembler now supports the immediate PC-relative forms of the FEAT_PAuth_LR instructions: AUTIA<k>SPPC and RETA<k>SPPC. These instructions use a 16-bit unsigned offset, scaled by 4, to specify a PC-relative address. The assembler handles this as an internal fixup, emitting no object-file relocation. Disassembly and testing have been updated accordingly.
In Details
The aarch64 assembler gains support for AUTIA<k>SPPC and RETA<k>SPPC instructions, which employ a PC-relative addressing mode with an ADDR_UPCREL16 operand. This operand type is resolved internally by gas without generating object-file relocations. The opcode table, disassembler, and test suite are updated to reflect these new instructions and their addressing semantics.
- PC-relative addressing
- An addressing mode where the operand specifies a location relative to the current program counter (PC). This is often used for short jumps or accessing data near the current instruction.
- FEAT_PAuth_LR
- A hardware feature extension for aarch64 processors that enables Pointer Authentication for Link Register (LR) signing, enhancing security by detecting certain types of control-flow hijacking attacks.
- Immediate operand
- An operand whose value is directly specified within the instruction itself, rather than being a reference to a memory location or register.
- Fixup
- A placeholder or information in an object file that indicates a value (like an address or offset) needs to be resolved later, typically by the linker or assembler, to create a complete, executable program.