summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/powerpc.exp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-01-31 09:38:17 +1030
committerAlan Modra <amodra@gmail.com>2022-01-31 14:09:34 +1030
commit9ff8aa7d418bc508dbd429576b93e30ed9dc5891 (patch)
treeb3824081c322e03acf00fe47eac23da0e07bf6bb /ld/testsuite/ld-powerpc/powerpc.exp
parenta634f5af2f57db8028d75ccebc478146d42e3151 (diff)
downloadbinutils-gdb-9ff8aa7d418bc508dbd429576b93e30ed9dc5891.tar.gz
Re: PR28827, assertion building LLVM 9 on powerpc64le-linux-gnu
In trying to find a testcase for PR28827, I managed to hit a linker error in bfd_set_section_contents with a .branch_lt input section being too large for the output .branch_lt. bfd/ PR 28827 * elf64-ppc.c (ppc64_elf_size_stubs): Set section size to maxsize past STUB_SHRINK_ITER before laying out. Remove now unnecessary conditional setting of maxsize at start of loop. ld/ * testsuite/ld-powerpc/pr28827-2.d, * testsuite/ld-powerpc/pr28827-2.lnk, * testsuite/ld-powerpc/pr28827-2.s: New test. * testsuite/ld-powerpc/powerpc.exp: Run it.
Diffstat (limited to 'ld/testsuite/ld-powerpc/powerpc.exp')
-rw-r--r--ld/testsuite/ld-powerpc/powerpc.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index 3eb707f42ea..3d738f5f93c 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -445,6 +445,7 @@ if [ supports_ppc64 ] then {
run_dump_test "tlsie"
run_dump_test "non-contiguous-powerpc64"
run_dump_test "tprel"
+ run_dump_test "pr28827-2"
}
run_dump_test "localgot"