Proposal
I propose adding Pauthtest = "pauthtest" as a possible value of CfgAbi, exposing cfg(target_abi = "pauthtest") for the AArch64 Linux pauthtest target. This makes pauthtest a 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::Pauthtest value.
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-pauthtest target triple.
The proposed pauthtest value 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 pauthtest is 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:
You can read more about Major Change Proposals on forge.
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.