[PATCH v0 12/13] aarch64: add PAuth_LR instructions with imm16 operand
Matthieu Longo
matthieu.longo@arm.com
Mon Jul 8 12:34:51 GMT 2024
This patch adds the instructions required by Armv9.5-A PAC
enhancements.
- the imm16 variant of auti<k>sppc
- the imm16 variant of reta<k>sppc
It also adds:
- a new operand parser (ADDR_UPCREL16) for 16-bits unsigned
immediate operand,
- a new relocation type (BFD_RELOC_AARCH64_AUTI_LO16_PCREL)
specific to the auti<k>sppc and reta<k>sppc instructions
and only used for computing the PC-relative offset, but
does no relocation.
- the relevant tests for the instructions.
---
bfd/elfnn-aarch64.c | 8 ++--
bfd/reloc.c | 17 ++++++++-
gas/config/tc-aarch64.c | 47 ++++++++++++++++++++++++
gas/testsuite/gas/aarch64/pauth_lr-bad.l | 10 ++++-
gas/testsuite/gas/aarch64/pauth_lr-bad.s | 15 ++++++++
gas/testsuite/gas/aarch64/pauth_lr.d | 15 +++++++-
gas/testsuite/gas/aarch64/pauth_lr.s | 17 +++++++++
include/opcode/aarch64.h | 1 +
opcodes/aarch64-opc.c | 28 +++++++++-----
opcodes/aarch64-tbl.h | 12 ++++++
10 files changed, 154 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v0-0012-aarch64-add-PAuth_LR-instructions-with-imm16-oper.patch
Type: text/x-patch
Size: 15712 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240708/409c06c1/attachment-0001.bin>
More information about the Binutils
mailing list