]> git.ipfire.org Git - thirdparty/valgrind.git/commit
none/tests/riscv64/testinst.h: Use lla instead of la in JMP_RANGE
authorMark Wielaard <mark@klomp.org>
Thu, 24 Apr 2025 01:11:26 +0000 (03:11 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 24 Apr 2025 01:11:30 +0000 (03:11 +0200)
commit4091830aa547ac07c50fffa80de2436a82ac017f
tree64ccc8cbbf4622556e57c3c85f7bef4473cee04f
parentc19c7979df6dce4362f60b9e359f23d05d86c2f7
none/tests/riscv64/testinst.h: Use lla instead of la in JMP_RANGE

la was fine when using binutils ld >= 2.43. But older (2.41 and 2.42)
binutils ld produced:

none/tests/riscv64/integer.c:81:(.text+0x22cd8): dangerous relocation:
The addend isn't allowed for R_RISCV_GOT_HI20

Using lla makes integer and compressed link with all binutils ld
versions.
none/tests/riscv64/testinst.h