]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Make protected function symbols local for -shared
authorXi Ruoyao <xry111@xry111.site>
Sun, 30 Jun 2024 07:18:23 +0000 (15:18 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 5 Jul 2024 04:11:11 +0000 (12:11 +0800)
commit17cae6980b15b96570908cebba29a04ab5e8ea41
treef2f6e29f694a26c09d9dae057689cc7af91f9c96
parent41ef0bff2033bb7b30a2792417aa946503492ce0
LoongArch: Make protected function symbols local for -shared

On LoongArch there is no reason to treat STV_PROTECTED STT_FUNC symbols
as preemptible.  See the comment above LARCH_REF_LOCAL for detailed
explanation.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
bfd/elfnn-loongarch.c
ld/testsuite/ld-loongarch-elf/ifunc-reloc.d
ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
ld/testsuite/ld-loongarch-elf/protected-func.d [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/protected-func.s [new file with mode: 0644]