[PATCH] D112427: [ARM] Implement setjmp BTI placement for PACBTI-M

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 27 08:23:40 PDT 2021


chill added a comment.

I would suggest to add a command line option to control placement of `BTI` after `setjmp`/etc.
The default should be as it is now, but IMHO we should provide means for people who *know* how their
runtime is implemented[1] to avoid placing the extra `BTI` instructions.

[1] e.g. `longjmp` uses PAC, in which case destination address is already authenticated, or
`longjmp` uses a non-BTI setting instruction to jump, in which case the `BTI` does nothing
other than take space and provide opportunities to jump from elsewhere.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112427/new/

https://reviews.llvm.org/D112427



More information about the llvm-commits mailing list