From 1dbf2bef7934cee9829d875f11968d6ff1fee77f Mon Sep 17 00:00:00 2001 From: mengqinggang Date: Wed, 8 May 2024 10:06:15 +0800 Subject: 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. --- elf/elf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'elf/elf.h') diff --git a/elf/elf.h b/elf/elf.h index 55b2e87..682bce5 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -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. */ -- cgit v1.1