Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PACBTI #4

Open
thejpster opened this issue Apr 23, 2024 · 2 comments
Open

PACBTI #4

thejpster opened this issue Apr 23, 2024 · 2 comments

Comments

@thejpster
Copy link

Arm Cortex-M85 has optional PACBTI - pointer authentication and branch target identification.

The feature is pacbti and I suspect target-cpu=cortex-m85 turns it on.

@thejpster
Copy link
Author

I can't see how to make rustc emit code that uses PACBTI, even with the feature turned on, and writing a function that does sketchy things was pointers to stack buffers.

@thejpster
Copy link
Author

https://doc.rust-lang.org/unstable-book/compiler-flags/branch-protection.html says do:

-Z branch-protection=bti,pac-ret,leaf

but this only works on aarch64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant