about summary refs log tree commit diff
path: root/sysdeps/loongarch/linkmap.h
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2024-05-08 10:06:15 +0800
committercaiyinyu <caiyinyu@loongson.cn>2024-05-15 10:31:53 +0800
commit1dbf2bef7934cee9829d875f11968d6ff1fee77f (patch)
treed9e2a0c544e5a7468bfc5149613155f2d2d4efdf /sysdeps/loongarch/linkmap.h
parentf942a732d37a96217ef828116ebe64a644db18d7 (diff)
downloadglibc-1dbf2bef7934cee9829d875f11968d6ff1fee77f.tar.gz
glibc-1dbf2bef7934cee9829d875f11968d6ff1fee77f.tar.xz
glibc-1dbf2bef7934cee9829d875f11968d6ff1fee77f.zip
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 'sysdeps/loongarch/linkmap.h')
-rw-r--r--sysdeps/loongarch/linkmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/loongarch/linkmap.h b/sysdeps/loongarch/linkmap.h
index 4d8737ee7f..833dc9eb82 100644
--- a/sysdeps/loongarch/linkmap.h
+++ b/sysdeps/loongarch/linkmap.h
@@ -18,5 +18,6 @@
 
 struct link_map_machine
 {
-  ElfW (Addr) plt; /* Address of .plt.  */
+  ElfW (Addr) plt;	/* Address of .plt.  */
+  void *tlsdesc_table;	/* Address of TLS descriptor hash table.  */
 };