[binutils-gdb] LoongArch: Do not add DF_STATIC_TLS for TLS LE
liu & zhensong
liuzhensong@sourceware.org
Mon Jan 22 09:31:54 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d5e68872d0fd32a5ee28b292d97129baca6e66f7
commit d5e68872d0fd32a5ee28b292d97129baca6e66f7
Author: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Date: Thu Dec 28 23:58:00 2023 +0900
LoongArch: Do not add DF_STATIC_TLS for TLS LE
TLS LE is exclusively for executables, while DF_STATIC_TLS is for DLLs.
DF_STATIC_TLS should only be set for TLS IE (and when it's DLL), not LE.
Diff:
---
bfd/elfnn-loongarch.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index 64ccc559952..b2caa5fc3e1 100644
--- a/bfd/elfnn-loongarch.c
+++ b/bfd/elfnn-loongarch.c
@@ -863,8 +863,6 @@ loongarch_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (!bfd_link_executable (info))
return false;
- info->flags |= DF_STATIC_TLS;
-
if (!loongarch_elf_record_tls_and_got_reference (abfd, info, h,
r_symndx,
GOT_TLS_LE))
More information about the Binutils-cvs
mailing list