]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64: Fix CET IBT.
authorMike Pall <mike>
Wed, 29 Oct 2025 08:38:41 +0000 (09:38 +0100)
committerMike Pall <mike>
Wed, 29 Oct 2025 08:38:41 +0000 (09:38 +0100)
Reported by Yuichiro Naito. #1400

src/vm_x64.dasc

index 2e9f05056d979bbb619cdbad5f7270e8447df98d..4cfb7b6ad20a3c96e397bbe96d7bff245825df5f 100644 (file)
@@ -4140,6 +4140,9 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
     |  hotloop RBd
     |.endif
     |->vm_IITERN:
+    |.if JIT
+    |  endbr
+    |.endif
     |  ins_A   // RA = base, (RB = nresults+1, RC = nargs+1 (2+1))
     |  mov TAB:RB, [BASE+RA*8-16]
     |  cleartp TAB:RB