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.