Repository navigation
Expose target_abi = "pauthtest" #1033
Description
Activity
- addedT-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustc
on Aug 18, 2026 - addedto-announceAnnounce this issue on triage meetingAnnounce this issue on triage meeting
on Aug 18, 2026 Important
This issue is not meant to be used for technical discussion. There is a Zulip stream for that.
Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.cc @rust-lang/compilerConcerns or objections can formally be registered here by adding a comment.
@rustbot concern reason-for-concern <description of the concern>Concerns can be lifted with:
@rustbot resolve reason-for-concernSee documentation at https://forge.rust-lang.org
cc @RalfJung
Sorry, there was some confusion here.
LlvmAbiis an internal value in rustc, doesn't need an MCP.
But that PR also added a new value for target_abi / target_env, right? That is user-visible and is something we've usually done MCPs for.EDIT: Yeah, it's the
cfg_abi: CfgAbi::PauthtestI was talking about re: MCP. Not thellvm_abiname: LlvmAbi::Pauthtest. Please update the MCP above.Reacted by Jakub Chlanda- changed the title
[-]Retroactive MCP for the addition of `LlvmAbi::Pauthtest`[/-][+]Expose `target_abi = "pauthtest"`[/+]on Aug 18, 2026 Sorry, there was some confusion here.
LlvmAbiis an internal value in rustc, doesn't need an MCP. But that PR also added a new value for target_abi / target_env, right? That is user-visible and is something we've usually done MCPs for.EDIT: Yeah, it's the
cfg_abi: CfgAbi::PauthtestI was talking about re: MCP. Not thellvm_abiname: LlvmAbi::Pauthtest. Please update the MCP above.Done, apologies for the confusion.
Reacted by Ralf Jung- removedto-announceAnnounce this issue on triage meetingAnnounce this issue on triage meeting
on Sep 24, 2026
Proposal
I propose adding
Pauthtest = "pauthtest"as a possible value ofCfgAbi, exposingcfg(target_abi = "pauthtest")for the AArch64 Linux pauthtest target. This makespauthtesta distinct ABI configuration within rustc rather than merely another name for the default AArch64 ABI.This MCP is being filed retroactively (apologies), following review feedback on the PR that introduced the target. The PR also added the corresponding
LlvmAbi::Pauthtestvalue.The target adds support for pointer authentication on AArch64 Linux ELF systems using a musl-based C standard library, using LLVM's
aarch64-unknown-linux-pauthtesttarget triple.The proposed
pauthtestvalue is useful for gating target-specific pointer-authentication behavior based on the ABI. For example, the pointer authentication implementation uses the ABI to gate code responsible for creating signing schemas. The new ABI value also couples the Rust-visible ABI with the corresponding LLVM ABI, as enforced by the consistency checks.The name
pauthtestis consistent with LLVM's existing terminology.Mentors or Reviewers
If you have a reviewer or mentor in mind for this work, mention them here. You can put your own name here if you are planning to mentor the work.
Process
The main points of the Major Change Process are as follows:
@rustbot secondor kickoff a team FCP with@rfcbot fcp $RESOLUTION.You can read more about Major Change Proposals on forge.