forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
committed by
liuzhensong
parent
2ae49bc16f
commit
d5e68872d0
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user