From: Mike Pall Date: Wed, 29 Oct 2025 08:38:31 +0000 (+0100) Subject: ARM64: Fix ARM BTI. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b20d6e305b67765de357137105f5af007bac705;p=thirdparty%2FLuaJIT.git ARM64: Fix ARM BTI. Reported by Yuichiro Naito. #1400 --- diff --git a/src/vm_arm64.dasc b/src/vm_arm64.dasc index 85d38de3..a437b657 100644 --- a/src/vm_arm64.dasc +++ b/src/vm_arm64.dasc @@ -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]