[llvm-branch-commits] [clang] [PAC][clang] Handle pauthtest environment and ABI in Linux-specific code (PR #113151)
Anton Korobeynikov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Dec 2 19:52:57 PST 2024
asl wrote:
> ELF PAuth is an object file format specific feature that isn't coupled with a specific OS. Keeping it in generic code might help other OSes (e.g. *BSD), if they ever adopt PAuth.
In fact, it is coupled. The idea here is that PAuth effectively defines another platform ABI (or several as on Darwin outside arm64e). The platform might chose different signing schemes, default options, and object marking scheme. Even more, the platform might chose not to expose `-fptrauth-*` options at all (as they do change ABI and their use by end users might be discouraged), so it does make sense to move the handling to target-specific code.
https://github.com/llvm/llvm-project/pull/113151
More information about the llvm-branch-commits
mailing list