commit | ba7654ad92bb2ae1f1914638039d012181cb73b0 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Sep 14 18:02:17 2023 +0000 |
committer | Elliott Hughes <enh@google.com> | Thu Sep 14 18:02:17 2023 +0000 |
tree | 0fb28449ddfe72ea5045a7f2ec4b16fdce394af6 | |
parent | 6f6df7376e0dc6dcca0e94e30616c67b30c1886d [diff] [blame] |
Add the risc-v TLSDESC relocations. https://github.com/riscv-non-isa/riscv-elf-psabi-doc/issues/94 was merged. Bug: https://github.com/google/android-riscv64/issues/3 Test: treehugger Change-Id: Ifc0c4d7408367f0372cec969d4ee6f84699bee30
diff --git a/libc/include/bits/elf_common.h b/libc/include/bits/elf_common.h index ac89dd6..0856f45 100644 --- a/libc/include/bits/elf_common.h +++ b/libc/include/bits/elf_common.h
@@ -1264,6 +1264,7 @@ #define R_RISCV_TLS_DTPREL64 9 #define R_RISCV_TLS_TPREL32 10 #define R_RISCV_TLS_TPREL64 11 +#define R_RISCV_TLSDESC 12 /* Relocation types not used by the dynamic linker. */ #define R_RISCV_BRANCH 16 @@ -1308,6 +1309,10 @@ #define R_RISCV_PLT32 59 #define R_RISCV_SET_ULEB128 60 #define R_RISCV_SUB_ULEB128 61 +#define R_RISCV_TLSDESC_HI20 62 +#define R_RISCV_TLSDESC_LOAD_LO12 63 +#define R_RISCV_TLSDESC_ADD_LO12 64 +#define R_RISCV_TLSDESC_CALL 65 #define R_SPARC_NONE 0 #define R_SPARC_8 1