[PATCH] LoongArch: Do not add DF_STATIC_TLS for TLS LE
mengqinggang
mengqinggang@loongson.cn
Mon Jan 22 09:46:34 GMT 2024
Thank you very much, it has been applied.
在 2023/12/28 下午10:58, 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))
More information about the Binutils
mailing list