aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorDaniil Kovalev <dkovalev@accesssoftek.com>2023-12-08 09:31:16 +0300
committerGitHub <noreply@github.com>2023-12-08 09:31:16 +0300
commitc8616c724fbddd38117240585242f4ae4db1ff3a (patch)
treeb34cc464bf2bbe399bb35fcd7945fcd900d616e3 /llvm/lib/Object
parent9f70e708a7d3fce97d63b626520351501455fca0 (diff)
downloadllvm-c8616c724fbddd38117240585242f4ae4db1ff3a.zip
llvm-c8616c724fbddd38117240585242f4ae4db1ff3a.tar.gz
llvm-c8616c724fbddd38117240585242f4ae4db1ff3a.tar.bz2
[llvm-readobj][AArch64][ELF][PAC] Support ELF AUTH constants (#72713)
This patch adds llvm-readobj support for: - Dynamic R_AARCH64_AUTH_* relocations (including RELR compressed AUTH relocations) as described here: https://github.com/ARM-software/abi-aa/blob/main/pauthabielf64/pauthabielf64.rst#auth-variant-dynamic-relocations - .note.AARCH64-PAUTH-ABI-tag section as defined here https://github.com/ARM-software/abi-aa/blob/main/pauthabielf64/pauthabielf64.rst#elf-marking
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/ELF.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp
index 1d73a6f..36847d1 100644
--- a/llvm/lib/Object/ELF.cpp
+++ b/llvm/lib/Object/ELF.cpp
@@ -273,6 +273,7 @@ StringRef llvm::object::getELFSectionTypeName(uint32_t Machine, unsigned Type) {
break;
case ELF::EM_AARCH64:
switch (Type) {
+ STRINGIFY_ENUM_CASE(ELF, SHT_AARCH64_AUTH_RELR);
STRINGIFY_ENUM_CASE(ELF, SHT_AARCH64_MEMTAG_GLOBALS_DYNAMIC);
STRINGIFY_ENUM_CASE(ELF, SHT_AARCH64_MEMTAG_GLOBALS_STATIC);
}