Skip to content

Add support for pointer authentication environment#1713

Draft
jchlanda wants to merge 1 commit intorust-lang:mainfrom
jchlanda:jakub/pauthtest
Draft

Add support for pointer authentication environment#1713
jchlanda wants to merge 1 commit intorust-lang:mainfrom
jchlanda:jakub/pauthtest

Conversation

@jchlanda
Copy link
Copy Markdown

This PR adds support for aarch64-unknown-linux-pauthtest, a target that enables Pointer Authentication Code (PAC) support in Rust on AArch64 ELF based Linux systems. It uses the aarch64-unknown-linux-pauthtest LLVM target and a pointer-authentication-enabled sysroot with a custom musl as a reference libc implementation. Dynamic linking is required, with a dynamic linker acting as the ELF interpreter that can resolve pauth relocations and enforce pointer authentication constraints.

Please note, that while cc-rs is able to compile c/c++ sources and link against the target binary successfully this is not sufficient for aarch64-unknown-linux-pauthtest. The target has a hard requirement on shared objects and dynamic linker must be used. This seems to be incompatible with the current state of cc-rs.

Please consult a rust-lang PR for the details on the target: rust-lang/rust#155722

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

Successfully merging this pull request may close these issues.

1 participant