Skip to content

Add support for aarch64-unknown-linux-pauthtest target#5065

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

Add support for aarch64-unknown-linux-pauthtest target#5065
jchlanda wants to merge 1 commit intorust-lang:mainfrom
jchlanda:jakub/pauthtest

Conversation

@jchlanda
Copy link
Copy Markdown

Description

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 using a pauthtest ABI (provided by LLVM) and pauthtest-enabled
sysroot 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-pauthtest should
be treated as musl-compatible.

Checklist

  • Relevant tests in libc-test/semver have been updated - N/A (no semver-affecting API changes)
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);

@rustbot label +stable-nominated

`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.
@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Apr 20, 2026
@tgross35
Copy link
Copy Markdown
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”buttarget_abi=“pauthtest”` in rustc so things mostly “just work”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants