Skip to content

Commit a453b3c

Browse files
committed
test: Skip inline x86_64 assembly on arm64ec
1 parent 9f59c26 commit a453b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cfguard-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void nop_sled_target(void) {
3535
__asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop");
3636
__asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop");
3737

38-
#if defined(__x86_64__)
38+
#if defined(__x86_64__) && !defined(__arm64ec__)
3939
// On x86_64 the stack frame has to be aligned to 16 bytes. Since we
4040
// skipped the prologue we need to manually realign it to prevent
4141
// alignment-related crashes when calling puts() or exit().

0 commit comments

Comments
 (0)