[llvm-branch-commits] [lld] [PAC][lld] Use braa instr in PAC PLT sequence with valid PAuth core info (PR #113945)

Anton Korobeynikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 29 01:20:39 PDT 2024


================
@@ -999,7 +999,9 @@ class AArch64BtiPac final : public AArch64 {
 
 private:
   bool btiHeader; // bti instruction needed in PLT Header and Entry
-  bool pacEntry;  // autia1716 instruction needed in PLT Entry
+  bool pacEntry;  // Authenticated branch needed in PLT Entry
----------------
asl wrote:

maybe we can just have enum here instead of pair of bools? E.g.
``enum {
  Unsigned,
  SignedHint,  // use autia1716 instruction in PLT entry
  Signed // can use non-hint braa instruction
}
```

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


More information about the llvm-branch-commits mailing list