]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: aarch64: Fix BTI stub optimization PR30957
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 13 Oct 2023 16:51:15 +0000 (17:51 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 20 Dec 2023 15:16:32 +0000 (15:16 +0000)
commit8b9de994244a85f6d87564a798e00d5acefa75b7
tree709ab239e0801e16a4bc09a04903c633aee1eefe
parentad9049e6da186e8317916dc2d0c89002d6a5e0f9
bfd: aarch64: Fix BTI stub optimization PR30957

The instruction was looked up in the wrong input file (file of branch
source instead of branch target) when optimizing away BTI stubs in

  commit 5834f36d93cabf1a8bcc7dd7654141aed3d296bc
  bfd: aarch64: Optimize BTI stubs PR30076

This can cause adding BTI stubs when they are not necessary or removing
them when they are (the latter is a correctness issue but it is very
unlikely in practice).

Fixes bug 30957.

(cherry picked from commit 98b94ebb3ffe715fddde762bb3ee7fd6d972f233)
bfd/elfnn-aarch64.c