diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-05-11 18:03:54 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-05-15 09:22:27 +0800 |
commit | 6a1cf1bfedbcdb977d9ead3bf6a228360d78cc1b (patch) | |
tree | e22aa545cc60554d8f59c0c93a392ad264b413da /ld/testsuite/ld-elf | |
parent | b2ca6bdc88cd1ab02ab113f638aa41b427826c23 (diff) | |
download | binutils-6a1cf1bfedbcdb977d9ead3bf6a228360d78cc1b.zip binutils-6a1cf1bfedbcdb977d9ead3bf6a228360d78cc1b.tar.gz binutils-6a1cf1bfedbcdb977d9ead3bf6a228360d78cc1b.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index db9d713..1eef9f4 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -504,7 +504,8 @@ run_ld_link_tests [list \ # but that is just an optimization so don't complain loudly. setup_xfail *-*-* clear_xfail alpha-*-* bfin-*-linux* csky-*-* frv-*-* hppa*-*-* i?86-*-* -clear_xfail ia64-*-* microblaze-*-* powerpc*-*-* x86_64-*-* xtensa-*-* +clear_xfail ia64-*-* loongarch*-*-* microblaze-*-* powerpc*-*-* x86_64-*-* +clear_xfail xtensa-*-* run_ld_link_tests { {"pr22374 function pointer initialization" "" "tmpdir/pr22374.so" "" "pr22374a.s" |