Skip to content

Commit e2c312e

Browse files
author
Mike Pall
committed
DynASM/ARM64: Fix NOP instruction for aligment
Reported by Marius Wachtler.
1 parent 43ebb94 commit e2c312e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynasm/dasm_arm64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ int dasm_encode(Dst_DECL, void *buffer)
438438
n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins&2047), !(ins&2048));
439439
goto patchrel;
440440
case DASM_ALIGN:
441-
ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xe1a00000;
441+
ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xd503201f;
442442
break;
443443
case DASM_REL_LG:
444444
if (n < 0) {

0 commit comments

Comments
 (0)