Add generic TLS linker reloc macros
Bug: http://b/78026329 Test: build bionic Change-Id: I7f9d3a250f27c31d0b8d9a3a306468fdf723f9c8
This commit is contained in:
parent
76e7fd4e26
commit
2ccb2f04e0
|
@ -34,30 +34,46 @@
|
||||||
|
|
||||||
#if defined (__aarch64__)
|
#if defined (__aarch64__)
|
||||||
|
|
||||||
#define R_GENERIC_JUMP_SLOT R_AARCH64_JUMP_SLOT
|
#define R_GENERIC_JUMP_SLOT R_AARCH64_JUMP_SLOT
|
||||||
#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__)
|
||||||
|
|
||||||
#define R_GENERIC_JUMP_SLOT R_ARM_JUMP_SLOT
|
#define R_GENERIC_JUMP_SLOT R_ARM_JUMP_SLOT
|
||||||
#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__)
|
||||||
|
|
||||||
#define R_GENERIC_JUMP_SLOT R_386_JMP_SLOT
|
#define R_GENERIC_JUMP_SLOT R_386_JMP_SLOT
|
||||||
#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__)
|
||||||
|
|
||||||
#define R_GENERIC_JUMP_SLOT R_X86_64_JUMP_SLOT
|
#define R_GENERIC_JUMP_SLOT R_X86_64_JUMP_SLOT
|
||||||
#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
|
||||||
|
|
Loading…
Reference in New Issue