[compiler-rt] [sanitizer] Fix prctl interceptor causing PAC authentication failure (PR #153081)

Fei Peng via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 13:14:14 PDT 2025


airpfei wrote:

> We could avoid adding PAC instructions by just adding some function attributes.
> 
> ```
> #ifdef __ARM_FEATURE_BTI_DEFAULT
> __attribute__((target("branch-protection=bti")))
> #else
> __attribute__((target("branch-protection=none")))
> #endif
> ```

@DanielKristofKiss just updated the change by following this suggestion

https://github.com/llvm/llvm-project/pull/153081


More information about the llvm-commits mailing list