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

src/vm_arm64.dasc

index 85d38de38443aae00a7f04e7cafb52e099aff21d..a437b657666090cf7d73b4b7c8aa33bea6eb1102 100644 (file)
@@ -3497,6 +3497,9 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
     |.endif
     |->vm_IITERN:
     |  // RA = base, (RB = nresults+1, RC = nargs+1 (2+1))
+    |.if JIT
+    |  bti_jump
+    |.endif
     |  add RA, BASE, RA, lsl #3
     |  ldr TAB:RB, [RA, #-16]
     |    ldrh TMP3w, [PC, # OFS_RD]