Add support for aarch64-unknown-linux-pauthtest target#5065
Draft
jchlanda wants to merge 1 commit intorust-lang:mainfrom
Draft
Add support for aarch64-unknown-linux-pauthtest target#5065jchlanda wants to merge 1 commit intorust-lang:mainfrom
aarch64-unknown-linux-pauthtest target#5065jchlanda wants to merge 1 commit intorust-lang:mainfrom
Conversation
`aarch64-unknown-linux-pauthtest`, a target that enables Pointer Authentication Code (PAC) support in Rust on AArch64 ELF based Linux systems using a `pauthtest` ABI (provided by LLVM) and pauthtest-enabled sysroot with custom [musl](https://github.com/access-softek/musl), serving as a reference libc implementation.
Contributor
|
Based on the todo it seems like you may already be aware, but targets need to be added to rustc first as no-std. After that happens you can bring up libc, then std. How much does the fork deviate from musl? If it’s identical but built differently, it may be worth considering setting ‘target_env=“musl” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for
aarch64-unknown-linux-pauthtest, a target thatenables Pointer Authentication Code (PAC) support in Rust on AArch64 ELF based
Linux systems using a
pauthtestABI (provided by LLVM) and pauthtest-enabledsysroot with custom musl, serving as a reference libc implementation.
Please consult a rust-lang PR for the details on the target: TODO JKB Add link
Sources
This target reuses the existing musl implementation paths in libc and does not
introduce new platform-specific APIs.
aarch64-unknown-linux-pauthtestshouldbe treated as musl-compatible.
Checklist
libc-test/semverhave been updated - N/A (no semver-affecting API changes)*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);@rustbot label +stable-nominated