bfd: aarch64: Optimize BTI stubs PR30076
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 3 Feb 2023 17:09:58 +0000 (17:09 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 23 Mar 2023 12:49:32 +0000 (12:49 +0000)
commit5834f36d93cabf1a8bcc7dd7654141aed3d296bc
treeecb45f2d82ee4918d25cb43d0798a4dd1c856d6c
parent15b4f66b0a9a3be6caf1898d22a13c39e662006f
bfd: aarch64: Optimize BTI stubs PR30076

Don't insert a second stub if the target is already compatible with
an indirect branch.
bfd/elfnn-aarch64.c
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/bti-far-opt.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/bti-far-opt.s [new file with mode: 0644]