aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-02-16 22:33:29 +1030
committerAlan Modra <amodra@gmail.com>2024-02-16 22:49:08 +1030
commit900c0f0aa3d78cd9e67ccd26fbc86224cef4c5b1 (patch)
tree43015e2d92b43869954c865182c8877633fe4287 /ld
parentbf4f7759ed6f7dbba2c7c8b26b3ac3e6f3031cc8 (diff)
downloadbinutils-900c0f0aa3d78cd9e67ccd26fbc86224cef4c5b1.zip
binutils-900c0f0aa3d78cd9e67ccd26fbc86224cef4c5b1.tar.gz
binutils-900c0f0aa3d78cd9e67ccd26fbc86224cef4c5b1.tar.bz2
PR27597, nios: assertion fail in nios2_elf32_install_imm16
The assertion in nios2_elf32_install_imm16 triggers when the PLT is twice the maximum allowable size for a branch from PLTn to reach .PLTresolve, and on no other call to nios2_elf32_install_imm16. That makes the assertion completely useless. We can handle a PIC PLT exceeding 0x8000 in size by bouncing branches that won't reach through previous branches. PR 27597 * elf32-nios2.c (nios2_elf32_install_imm16): Delete BFD_ASSERT. (nios2_build_one_stub): Don't bother masking value passed to nios2_elf32_install_imm16. (nios2_elf32_finish_dynamic_symbol): Likewise. Handle overflow of PLTn branch to .PLTresolve by bouncing through prior branches.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions