Add generic TLS linker reloc macros

Bug: http://b/78026329
Test: build bionic
Change-Id: I7f9d3a250f27c31d0b8d9a3a306468fdf723f9c8
This commit is contained in:
Ryan Prichard 2019-01-01 01:49:41 -08:00
parent 76e7fd4e26
commit 2ccb2f04e0
1 changed files with 32 additions and 16 deletions

View File

@ -38,6 +38,10 @@
#define R_GENERIC_GLOB_DAT R_AARCH64_GLOB_DAT #define R_GENERIC_GLOB_DAT R_AARCH64_GLOB_DAT
#define R_GENERIC_RELATIVE R_AARCH64_RELATIVE #define R_GENERIC_RELATIVE R_AARCH64_RELATIVE
#define R_GENERIC_IRELATIVE R_AARCH64_IRELATIVE #define R_GENERIC_IRELATIVE R_AARCH64_IRELATIVE
#define R_GENERIC_TLS_DTPMOD R_AARCH64_TLS_DTPMOD64
#define R_GENERIC_TLS_DTPREL R_AARCH64_TLS_DTPREL64
#define R_GENERIC_TLS_TPREL R_AARCH64_TLS_TPREL64
#define R_GENERIC_TLSDESC R_AARCH64_TLSDESC
#elif defined (__arm__) #elif defined (__arm__)
@ -45,6 +49,10 @@
#define R_GENERIC_GLOB_DAT R_ARM_GLOB_DAT #define R_GENERIC_GLOB_DAT R_ARM_GLOB_DAT
#define R_GENERIC_RELATIVE R_ARM_RELATIVE #define R_GENERIC_RELATIVE R_ARM_RELATIVE
#define R_GENERIC_IRELATIVE R_ARM_IRELATIVE #define R_GENERIC_IRELATIVE R_ARM_IRELATIVE
#define R_GENERIC_TLS_DTPMOD R_ARM_TLS_DTPMOD32
#define R_GENERIC_TLS_DTPREL R_ARM_TLS_DTPOFF32
#define R_GENERIC_TLS_TPREL R_ARM_TLS_TPOFF32
#define R_GENERIC_TLSDESC R_ARM_TLS_DESC
#elif defined (__i386__) #elif defined (__i386__)
@ -52,6 +60,10 @@
#define R_GENERIC_GLOB_DAT R_386_GLOB_DAT #define R_GENERIC_GLOB_DAT R_386_GLOB_DAT
#define R_GENERIC_RELATIVE R_386_RELATIVE #define R_GENERIC_RELATIVE R_386_RELATIVE
#define R_GENERIC_IRELATIVE R_386_IRELATIVE #define R_GENERIC_IRELATIVE R_386_IRELATIVE
#define R_GENERIC_TLS_DTPMOD R_386_TLS_DTPMOD32
#define R_GENERIC_TLS_DTPREL R_386_TLS_DTPOFF32
#define R_GENERIC_TLS_TPREL R_386_TLS_TPOFF
#define R_GENERIC_TLSDESC R_386_TLS_DESC
#elif defined (__x86_64__) #elif defined (__x86_64__)
@ -59,5 +71,9 @@
#define R_GENERIC_GLOB_DAT R_X86_64_GLOB_DAT #define R_GENERIC_GLOB_DAT R_X86_64_GLOB_DAT
#define R_GENERIC_RELATIVE R_X86_64_RELATIVE #define R_GENERIC_RELATIVE R_X86_64_RELATIVE
#define R_GENERIC_IRELATIVE R_X86_64_IRELATIVE #define R_GENERIC_IRELATIVE R_X86_64_IRELATIVE
#define R_GENERIC_TLS_DTPMOD R_X86_64_DTPMOD64
#define R_GENERIC_TLS_DTPREL R_X86_64_DTPOFF64
#define R_GENERIC_TLS_TPREL R_X86_64_TPOFF64
#define R_GENERIC_TLSDESC R_X86_64_TLSDESC
#endif #endif