Patchwork [1/2] Add DT_AARCH64_BTI_PLT and DT_AARCH64_PAC_PLT to elf.h.

login
register
mail settings
Submitter Szabolcs Nagy
Date June 20, 2019, 5:08 p.m.
Message ID <a52ebc36-bdb0-56c2-2b2d-7c612e7b8309@arm.com>
Download mbox | patch
Permalink /patch/33245/
State New
Headers show

Comments

Szabolcs Nagy - June 20, 2019, 5:08 p.m.
These are new AArch64 specific ELF dynamic tags.

2019-06-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* elf/elf.h (DT_AARCH64_PAC_PLT): Define.
	(DT_AARCH64_BTI_PLT): Define.

Patch

diff --git a/elf/elf.h b/elf/elf.h

index 7c6d6094ed..275f8bed47 100644

--- a/elf/elf.h

+++ b/elf/elf.h

@@ -2863,10 +2863,12 @@  enum

 #define R_AARCH64_TLS_TPREL    1030	/* TP-relative offset, 64 bit.  */
 #define R_AARCH64_TLSDESC      1031	/* TLS Descriptor.  */
 #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
 
 /* AArch64 specific values for the st_other field.  */
 #define STO_AARCH64_VARIANT_PCS 0x80