diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2024-02-27 14:01:41 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2024-02-27 14:07:17 +0100 |
commit | 896a639babe2d883467978abce7a4c55bc9f00ed (patch) | |
tree | a34555d413cf1725e980564cef66f03bcfda3cfa /gdb/python/py-dap.c | |
parent | d6a14e41381d0aa0a99c6796d3bd3677c80dfe06 (diff) | |
download | binutils-896a639babe2d883467978abce7a4c55bc9f00ed.zip binutils-896a639babe2d883467978abce7a4c55bc9f00ed.tar.gz binutils-896a639babe2d883467978abce7a4c55bc9f00ed.tar.bz2 |
s390: Avoid reloc overflows on undefined weak symbols
Replace relative long addressing instructions of weak symbols, which
will definitely resolve to zero, with either a load address of 0, a
NOP, or a trapping insn.
This prevents the PC32DBL relocation from overflowing in case the
binary will be loaded at 4GB or more.
bfd/ChangeLog:
* bfd/elf64-s390.c (elf_s390_relocate_section): Replace
instructions using undefined weak symbols with relative addressing
to avoid relocation overflows.
ld/ChangeLog:
* ld/testsuite/ld-s390/s390.exp:
* ld/testsuite/ld-s390/8GB.ld: New test.
* ld/testsuite/ld-s390/weakundef-1.dd: New test.
* ld/testsuite/ld-s390/weakundef-1.s: New test.
Diffstat (limited to 'gdb/python/py-dap.c')
0 files changed, 0 insertions, 0 deletions