d8307d
commit 55f82d328d2dd1c7c13c1992f4b9bf9c95b57551
d8307d
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
d8307d
Date:   Thu Apr 25 15:35:35 2019 +0100
d8307d
d8307d
    aarch64: add STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS
d8307d
    
d8307d
    STO_AARCH64_VARIANT_PCS is a non-visibility st_other flag for marking
d8307d
    symbols that reference functions that may follow a variant PCS with
d8307d
    different register usage convention from the base PCS.
d8307d
    
d8307d
    DT_AARCH64_VARIANT_PCS is a dynamic tag that marks ELF modules that
d8307d
    have R_*_JUMP_SLOT relocations for symbols marked with
d8307d
    STO_AARCH64_VARIANT_PCS (i.e. have variant PCS calls via a PLT).
d8307d
    
d8307d
            * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
d8307d
            (DT_AARCH64_VARIANT_PCS): Define.
d8307d
d8307d
diff --git a/elf/elf.h b/elf/elf.h
d8307d
index 7e2b072a7f75451c..74f7f479ce817040 100644
d8307d
--- a/elf/elf.h
d8307d
+++ b/elf/elf.h
d8307d
@@ -2847,6 +2847,13 @@ enum
d8307d
 #define R_AARCH64_TLSDESC      1031	/* TLS Descriptor.  */
d8307d
 #define R_AARCH64_IRELATIVE	1032	/* STT_GNU_IFUNC relocation.  */
d8307d
 
d8307d
+/* AArch64 specific values for the Dyn d_tag field.  */
d8307d
+#define DT_AARCH64_VARIANT_PCS	(DT_LOPROC + 5)
d8307d
+#define DT_AARCH64_NUM		6
d8307d
+
d8307d
+/* AArch64 specific values for the st_other field.  */
d8307d
+#define STO_AARCH64_VARIANT_PCS 0x80
d8307d
+
d8307d
 /* ARM relocs.  */
d8307d
 
d8307d
 #define R_ARM_NONE		0	/* No reloc */