]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
aarch64-elf: FAIL: indirect call stub to BTI stub relaxation
authorAlan Modra <amodra@gmail.com>
Sun, 3 Dec 2023 22:18:34 +0000 (08:48 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 5 Dec 2023 02:30:34 +0000 (13:00 +1030)
commit21a2a3d567a2af583768b5f614403e65611c58a5
tree4eedce742fd996ec862069695b9abee0ec8d3b3b
parent9d0b2b5daf40ed8eb3d77b94c998b1ffdcb4173d
aarch64-elf: FAIL: indirect call stub to BTI stub relaxation

aarch64-elf fails the ld-aarch64/bfd-far-3.d test, due to the stubs
being emitted in a different order to that of aarch64-linux.  They are
emitted in a different order due to stub names for local symbols
having the section id in the stub name.  aarch64-linux-ld generates
one more section than aarch64-elf-ld.  That section is .gnu.hash.  So
the stub names differ and are hashed to different slots in
stub_hash_table.

Fix this by running the test with --hash-style=sysv, and adjust
expected output.  I've also changed the branch over stubs emitted at
the start of a group of stubs to not care about the symbol, for all
groups not just the one that needed changing.

* ld-aarch64/bti-far-3.d: Add --hash-style=sysv.  Adjust
expected output.
ld/testsuite/ld-aarch64/bti-far-3.d