diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2024-05-08 10:06:15 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2024-05-15 10:31:53 +0800 |
commit | 1dbf2bef7934cee9829d875f11968d6ff1fee77f (patch) | |
tree | d9e2a0c544e5a7468bfc5149613155f2d2d4efdf /elf/elf.h | |
parent | f942a732d37a96217ef828116ebe64a644db18d7 (diff) | |
download | glibc-1dbf2bef7934cee9829d875f11968d6ff1fee77f.zip glibc-1dbf2bef7934cee9829d875f11968d6ff1fee77f.tar.gz glibc-1dbf2bef7934cee9829d875f11968d6ff1fee77f.tar.bz2 |
LoongArch: Add support for TLS Descriptors
This is mostly based on AArch64 and RISC-V implementation.
Add R_LARCH_TLS_DESC32 and R_LARCH_TLS_DESC64 relocations.
For _dl_tlsdesc_dynamic function slow path, temporarily save and restore
all vector registers.
Diffstat (limited to 'elf/elf.h')
-rw-r--r-- | elf/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4241,6 +4241,8 @@ enum #define R_LARCH_TLS_TPREL32 10 #define R_LARCH_TLS_TPREL64 11 #define R_LARCH_IRELATIVE 12 +#define R_LARCH_TLS_DESC32 13 +#define R_LARCH_TLS_DESC64 14 /* Reserved for future relocs that the dynamic linker must understand. */ |