]> sourceware.org Git - glibc.git/commitdiff
elf.h: add aarch64 property definitions
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 1 Apr 2020 08:25:47 +0000 (09:25 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 21 May 2020 08:55:43 +0000 (09:55 +0100)
These property values are specified by the AArch64 ELF ABI and
binutils can create binaries marked with them.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/elf.h

index 5b5ce37d9e8ea960169c2c7595d6ddbf2c82b4dc..197b557d15ab2e0148cbf67b8390c85b40f2f1a8 100644 (file)
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1319,6 +1319,12 @@ typedef struct
 /* Application-specific semantics, hi */
 #define GNU_PROPERTY_HIUSER                    0xffffffff
 
+/* AArch64 specific GNU properties.  */
+#define GNU_PROPERTY_AARCH64_FEATURE_1_AND     0xc0000000
+
+#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI     (1U << 0)
+#define GNU_PROPERTY_AARCH64_FEATURE_1_PAC     (1U << 1)
+
 /* The x86 instruction sets indicated by the corresponding bits are
    used in program.  Their support in the hardware is optional.  */
 #define GNU_PROPERTY_X86_ISA_1_USED            0xc0000000
This page took 0.053842 seconds and 5 git commands to generate.