llvm-project
84b0c128 - [PAC] Do not support some values of branch-protection with ptrauth-returns (#125280)

Commit
242 days ago
[PAC] Do not support some values of branch-protection with ptrauth-returns (#125280) This patch does two things. 1. Previously, when checking driver arguments, we emitted an error for unsupported values of `-mbranch-protection` when using pauthtest ABI. The reason for that was ptrauth-returns being enabled as part of pauthtest. This patch changes the check against pauthtest to a check against ptrauth-returns. 2. Similarly, check against values of the following function attribute which are unsupported with ptrauth-returns: `__attribute__((target("branch-protection=XXX`. Note that existing `validateBranchProtection` function is used, and current behavior is to ignore the unsupported attribute value, so no error is emitted.
Author
Parents
Loading