[llvm-branch-commits] CodeGen: Optionally emit PAuth relocations as IRELATIVE relocations. (PR #133533)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 28 15:33:46 PDT 2025


https://github.com/pcc created https://github.com/llvm/llvm-project/pull/133533

This supports the following use cases:
- ConstantPtrAuth expressions that are unrepresentable using standard PAuth
  relocations such as expressions involving an integer operand or
  deactivation symbols.
- libc implementations that do not support PAuth relocations.

For more information see the RFC:
https://discourse.llvm.org/t/rfc-structure-protection-a-family-of-uaf-mitigation-techniques/85555

TODO:
- Add tests.





More information about the llvm-branch-commits mailing list