Skip to content

Commit

Permalink
[PAC][llvm-readobj][ELF][AArch64] Define static AUTH TLSDESC relocati…
Browse files Browse the repository at this point in the history
…ons (#113716)

See specification ARM-software/abi-aa#295
  • Loading branch information
kovdan01 authored Nov 18, 2024
1 parent 222f6af commit 3250612
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions llvm/test/tools/llvm-readobj/ELF/reloc-types-aarch64.test
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

0 comments on commit 3250612

Please sign in to comment.