From bc405f6d79ab854c99ae8678dadd8ef78d33e669 Mon Sep 17 00:00:00 2001 From: hakanrw Date: Sat, 21 Feb 2026 19:56:26 +0100 Subject: [PATCH] aarch64: Fix assembly directive in crtbegin.c. Use 8-byte value for ctor/dtor list. Signed-off-by: hakanrw --- csu/linux/crtbegin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csu/linux/crtbegin.c b/csu/linux/crtbegin.c index 8197242..c4ccecc 100644 --- a/csu/linux/crtbegin.c +++ b/csu/linux/crtbegin.c @@ -45,7 +45,7 @@ extern void (*__DTOR_LIST__[1])(void); asm( " .section .ctors,\"aw\",@progbits\n" " .align 4\n" "__CTOR_LIST__:\n" -#ifdef __x86_64__ +#if defined(__x86_64__) || defined(__aarch64__) " .quad -1\n" #else " .long -1\n" @@ -56,7 +56,7 @@ asm( " .section .ctors,\"aw\",@progbits\n" asm( " .section .dtors,\"aw\",@progbits\n" " .align 4\n" "__DTOR_LIST__:\n" -#ifdef __x86_64__ +#if defined(__x86_64__) || defined(__aarch64__) " .quad -1\n" #else " .long -1\n"