LoongArch: Fix PLT entry generate bug
authormengqinggang <mengqinggang@loongson.cn>
Thu, 11 May 2023 10:03:54 +0000 (18:03 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 15 May 2023 01:22:27 +0000 (09:22 +0800)
commit6a1cf1bfedbcdb977d9ead3bf6a228360d78cc1b
treee22aa545cc60554d8f59c0c93a392ad264b413da
parentb2ca6bdc88cd1ab02ab113f638aa41b427826c23
LoongArch: Fix PLT entry generate bug

If a function symbol only get its address by la.global, without
directly called by bl instruction, the PLT entry is not required.

bfd/ChangeLog:

* elfnn-loongarch.c (loongarch_elf_adjust_dynamic_symbol): Fix PLT
entry generate bug.

ld/ChangeLog:

* testsuite/ld-elf/shared.exp: Clear xfail for LoongArch.
bfd/elfnn-loongarch.c
ld/testsuite/ld-elf/shared.exp