diff options
author | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2023-12-28 23:58:00 +0900 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-01-22 17:14:29 +0800 |
commit | d5e68872d0fd32a5ee28b292d97129baca6e66f7 (patch) | |
tree | 0626a78b39a30e7258f398c3d1d9f61243fc75a0 /bfd | |
parent | 2ae49bc16fb00ce600da5b2bb503b6e9e3931fa4 (diff) | |
download | gdb-d5e68872d0fd32a5ee28b292d97129baca6e66f7.zip gdb-d5e68872d0fd32a5ee28b292d97129baca6e66f7.tar.gz gdb-d5e68872d0fd32a5ee28b292d97129baca6e66f7.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elfnn-loongarch.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index 64ccc55..b2caa5f 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)) |