SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
Add retguard for arm64.
|
||||
|
||||
Index: lib/Target/AArch64/AArch64InstrInfo.td
|
||||
--- lib/Target/AArch64/AArch64InstrInfo.td.orig
|
||||
+++ lib/Target/AArch64/AArch64InstrInfo.td
|
||||
@@ -721,6 +721,14 @@ def ADDlowTLS
|
||||
|
||||
} // isReMaterializable, isCodeGenOnly
|
||||
|
||||
+//===----------------------------------------------------------------------===//
|
||||
+// Pseudo instruction used by retguard
|
||||
+let isCodeGenOnly = 1, hasNoSchedulingInfo = 1 in {
|
||||
+ let Size = 8 in {
|
||||
+ def RETGUARD_JMP_TRAP: Pseudo<(outs), (ins GPR64:$reg), []>;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
def : Pat<(AArch64LOADgot tglobaltlsaddr:$addr),
|
||||
(LOADgot tglobaltlsaddr:$addr)>;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue