]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 3298 Fix SuperH relaxation overriding wrong intruction
authorQBos07 <qubos@outlook.de>
Fri, 9 May 2025 13:49:44 +0000 (13:49 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 22 May 2025 23:27:50 +0000 (08:57 +0930)
commit6cd9586f7f502d9034751df1b88b1ae91a34a8b6
treecdaf329f07a9b9e29db37fefbf720b51c41cec2b
parent689f3edfb8fb7fbe5432bfdba9f79347a6649dbf
PR 3298 Fix SuperH relaxation overriding wrong intruction

when doing load store switching it wrongly adjusts the address of the
R_SH_USES reloc and not the actual offset from that instruction. This is
an issue if the pc-relative function call relaxation gets done in a
later pass wich will result in overriding the wrong instruction.
bfd/elf32-sh.c