[Bug target/106671] aarch64: BTI instruction are not inserted for cross-section direct calls

scott at os dot amperecomputing.com gcc-bugzilla@gcc.gnu.org
Wed Aug 17 23:39:03 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671

--- Comment #2 from D Scott Phillips <scott at os dot amperecomputing.com> ---
th(In reply to Andrew Pinski from comment #1)
> Shouldn't the linker add the BTI inside the ___veneer instead?

The bti instruction has to be placed at the target of the indirect branch (at
the top of `func` in this case) so I don't think it would be possible to work
around this just within the veneer.


More information about the Gcc-bugs mailing list