[clang] [llvm] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

Daniel Kiss via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 25 01:54:56 PDT 2024


DanielKristofKiss wrote:

> For return-address signing, each function can make its own choice about whether to sign; the function that's doing the signing is the same function that does the auth, so it doesn't directly impact any other function. For branch target enforcement, though, everything needs to agree that branch targets are supposed to be enforced, or else the process crashes. So there's no point to modifying whether it's enabled for a single function.

You are right in case of user space application but in some other use cases it is desired to keep the function properties because the executable is loaded differently (higher EL's).



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


More information about the cfe-commits mailing list