about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-08-28 18:44:16 +0200
committerMark Wielaard <mark@klomp.org>2020-09-07 09:12:04 +0200
commit721a853415e358ba887c9fc693899cb648ca79f3 (patch)
tree89a26f713ce0b87ea43d388740b9126b1c1eaea2
parent04bba1e5d84b6fd8d3a3b006bc240cd5d241ee30 (diff)
downloadglibc-721a853415e358ba887c9fc693899cb648ca79f3.tar.gz
glibc-721a853415e358ba887c9fc693899cb648ca79f3.tar.xz
glibc-721a853415e358ba887c9fc693899cb648ca79f3.zip
elf.h: Add aarch64 bti/pac dynamic tag constants
Constants double checked against binutils and the ELF for the Arm 64-bit
Architecture (AArch64) Release 2020Q2 document.

Only BTI PLT is used in glibc, there's no PAC PLT with glibc, and people
are expected to use BIND_NOW.
-rw-r--r--elf/elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/elf.h b/elf/elf.h
index 197b557d15..ff9f1dadd5 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -2875,6 +2875,8 @@ enum
 #define R_AARCH64_IRELATIVE	1032	/* STT_GNU_IFUNC relocation.  */
 
 /* AArch64 specific values for the Dyn d_tag field.  */
+#define DT_AARCH64_BTI_PLT	(DT_LOPROC + 1)
+#define DT_AARCH64_PAC_PLT	(DT_LOPROC + 3)
 #define DT_AARCH64_VARIANT_PCS	(DT_LOPROC + 5)
 #define DT_AARCH64_NUM		6