Re: PR28827, assertion building LLVM 9 on powerpc64le-linux-gnu
authorAlan Modra <amodra@gmail.com>
Sun, 30 Jan 2022 23:08:17 +0000 (09:38 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Jan 2022 03:39:34 +0000 (14:09 +1030)
commit9ff8aa7d418bc508dbd429576b93e30ed9dc5891
treeb3824081c322e03acf00fe47eac23da0e07bf6bb
parenta634f5af2f57db8028d75ccebc478146d42e3151
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.
bfd/elf64-ppc.c
ld/testsuite/ld-powerpc/powerpc.exp
ld/testsuite/ld-powerpc/pr28827-2.d [new file with mode: 0644]
ld/testsuite/ld-powerpc/pr28827-2.lnk [new file with mode: 0644]
ld/testsuite/ld-powerpc/pr28827-2.s [new file with mode: 0644]