[llvm] 3250612 - [PAC][llvm-readobj][ELF][AArch64] Define static AUTH TLSDESC relocations (#113716)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 05:59:09 PST 2024
Author: Daniil Kovalev
Date: 2024-11-18T16:59:05+03:00
New Revision: 32506126fb9c7fa38f215ec2fafa3ad4f17469db
URL: https://github.com/llvm/llvm-project/commit/32506126fb9c7fa38f215ec2fafa3ad4f17469db
DIFF: https://github.com/llvm/llvm-project/commit/32506126fb9c7fa38f215ec2fafa3ad4f17469db.diff
LOG: [PAC][llvm-readobj][ELF][AArch64] Define static AUTH TLSDESC relocations (#113716)
See specification https://github.com/ARM-software/abi-aa/pull/295
Added:
Modified:
llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
Removed:
################################################################################
diff --git a/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def b/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
index 6f0e948a98c5fa..f28a4646cc6da1 100644
--- a/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
+++ b/llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
@@ -158,6 +158,9 @@ ELF_RELOC(R_AARCH64_AUTH_LD64_GOT_LO12_NC, 0x811a)
ELF_RELOC(R_AARCH64_AUTH_LD64_GOTPAGE_LO15, 0x811b)
ELF_RELOC(R_AARCH64_AUTH_GOT_ADD_LO12_NC, 0x811c)
ELF_RELOC(R_AARCH64_AUTH_GOT_ADR_PREL_LO21, 0x811d)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC_ADR_PAGE21, 0x811e)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC_LD64_LO12, 0x811f)
+ELF_RELOC(R_AARCH64_AUTH_TLSDESC_ADD_LO12, 0x8120)
ELF_RELOC(R_AARCH64_AUTH_GLOB_DAT, 0xe201)
ELF_RELOC(R_AARCH64_AUTH_TLSDESC, 0xe202)
ELF_RELOC(R_AARCH64_AUTH_IRELATIVE, 0xe203)
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
index 2833c0b59ae13d..458761a2ba6b4d 100644
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
@@ -144,6 +144,9 @@
# CHECK: Type: R_AARCH64_AUTH_LD64_GOTPAGE_LO15 (33051)
# CHECK: Type: R_AARCH64_AUTH_GOT_ADD_LO12_NC (33052)
# CHECK: Type: R_AARCH64_AUTH_GOT_ADR_PREL_LO21 (33053)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC_ADR_PAGE21 (33054)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC_LD64_LO12 (33055)
+# CHECK: Type: R_AARCH64_AUTH_TLSDESC_ADD_LO12 (33056)
# CHECK: Type: R_AARCH64_AUTH_GLOB_DAT (57857)
# CHECK: Type: R_AARCH64_AUTH_TLSDESC (57858)
# CHECK: Type: R_AARCH64_AUTH_IRELATIVE (57859)
@@ -298,6 +301,9 @@ Sections:
- Type: R_AARCH64_AUTH_LD64_GOTPAGE_LO15
- Type: R_AARCH64_AUTH_GOT_ADD_LO12_NC
- Type: R_AARCH64_AUTH_GOT_ADR_PREL_LO21
+ - Type: R_AARCH64_AUTH_TLSDESC_ADR_PAGE21
+ - Type: R_AARCH64_AUTH_TLSDESC_LD64_LO12
+ - Type: R_AARCH64_AUTH_TLSDESC_ADD_LO12
- Type: R_AARCH64_AUTH_GLOB_DAT
- Type: R_AARCH64_AUTH_TLSDESC
- Type: R_AARCH64_AUTH_IRELATIVE
More information about the llvm-commits
mailing list