From a0d64afd6f8af10a4ae123ab773bcbf65cf2f64e Mon Sep 17 00:00:00 2001 From: Weaselbot Date: Fri, 26 Jun 2026 11:08:20 -0400 Subject: [PATCH] Fix ARM64 assembly size directive in cpu_work.cpp The GNU assembler expects `.size symbol, .-symbol`. The previous `.size spend_cpu_cycles, spend_cpu_cycles` expression is not a constant and breaks compilation on AArch64 Linux. Use the correct form so the project builds on ARM64. --- src/cpu_work.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu_work.cpp b/src/cpu_work.cpp index 70a8cc2..13927fb 100644 --- a/src/cpu_work.cpp +++ b/src/cpu_work.cpp @@ -55,7 +55,7 @@ asm(".text\n" " b.ne .L_loop\n" // Branch back if not zero ".L_end:\n" // End " ret\n" // Return - ".size spend_cpu_cycles, spend_cpu_cycles\n"); + ".size spend_cpu_cycles, .-spend_cpu_cycles\n"); #endif #endif