From a453b3c9b38405ed701d36426a7bbcffeb44773c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 28 Aug 2024 15:16:50 +0300 Subject: [PATCH] test: Skip inline x86_64 assembly on arm64ec --- test/cfguard-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cfguard-test.c b/test/cfguard-test.c index e552754..ac454c1 100644 --- a/test/cfguard-test.c +++ b/test/cfguard-test.c @@ -35,7 +35,7 @@ void nop_sled_target(void) { __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); -#if defined(__x86_64__) +#if defined(__x86_64__) && !defined(__arm64ec__) // On x86_64 the stack frame has to be aligned to 16 bytes. Since we // skipped the prologue we need to manually realign it to prevent // alignment-related crashes when calling puts() or exit().