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