public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] LoongArch: Do not add DF_STATIC_TLS for TLS LE
@ 2023-12-28 14:58 Tatsuyuki Ishi
  2023-12-28 14:58 ` [PATCH] LoongArch: Use tab to indent assembly in TLSDESC test suite Tatsuyuki Ishi
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Tatsuyuki Ishi @ 2023-12-28 14:58 UTC (permalink / raw)
  To: binutils
  Cc: cailulu, chenglulu, hejinyang, i.swmail, liuzhensong, luweining,
	maskray, mengqinggang, nickc, wanglei, xry111, xuchenghua,
	Tatsuyuki Ishi

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.
---
 bfd/elfnn-loongarch.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index bd448cda453..64c34e99261 100644
--- a/bfd/elfnn-loongarch.c
+++ b/bfd/elfnn-loongarch.c
@@ -862,8 +862,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))
-- 
2.40.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-01-22  9:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-28 14:58 [PATCH] LoongArch: Do not add DF_STATIC_TLS for TLS LE Tatsuyuki Ishi
2023-12-28 14:58 ` [PATCH] LoongArch: Use tab to indent assembly in TLSDESC test suite Tatsuyuki Ishi
2024-01-22  9:47   ` mengqinggang
2023-12-28 14:58 ` [PATCH] LoongArch: Update comment about bottom bit usage in TLS GOT construction Tatsuyuki Ishi
2023-12-29  8:50   ` mengqinggang
2023-12-29  9:11     ` Tatsuyuki Ishi
2023-12-29  9:59       ` mengqinggang
2024-01-22  5:45 ` [PATCH] LoongArch: Do not add DF_STATIC_TLS for TLS LE Tatsuyuki Ishi
2024-01-22  5:48   ` Fangrui Song
2024-01-22  6:51     ` Xi Ruoyao
2024-01-22  7:11       ` Fangrui Song
2024-01-22  8:27   ` mengqinggang
2024-01-22  9:46 ` mengqinggang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).