diff options
author | Jens Remus <jremus@linux.ibm.com> | 2024-07-12 16:53:47 +0200 |
---|---|---|
committer | Jens Remus <jremus@linux.ibm.com> | 2024-07-12 16:53:47 +0200 |
commit | 83511d2679bbcc4b8d6ac42fb71cfbc35e77107e (patch) | |
tree | 0a02921cf0d56dc7c59826c496cea01337c57b14 /elfcpp/s390.h | |
parent | 7bdb051fd62ca70aa2cf549441b7728d20a3a631 (diff) | |
download | gdb-83511d2679bbcc4b8d6ac42fb71cfbc35e77107e.zip gdb-83511d2679bbcc4b8d6ac42fb71cfbc35e77107e.tar.gz gdb-83511d2679bbcc4b8d6ac42fb71cfbc35e77107e.tar.bz2 |
s390: Do not replace brcth referencing undefined weak symbol
Branch Relative on Count High (brcth) is a conditional branch relative
instruction. It is not guaranteed that it only appears within loops
that sooner or later will take the branch. It may very well be used to
check a condition that will prevent the branch from ever being taken.
bfd/
* elf64-s390.c (elf_s390_relocate_section): Do not replace brcth
referencing undefined weak symbol with a trap.
ld/
* testsuite/ld-s390/weakundef-1.s: Update test case accordingly.
* testsuite/ld-s390/weakundef-1.dd: Likewise.
Fixes: 896a639babe2 ("s390: Avoid reloc overflows on undefined weak symbols")
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'elfcpp/s390.h')
0 files changed, 0 insertions, 0 deletions