From 559f1e20c278259f3a5101b18e06d3283195a44c Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 18 Mar 2025 09:44:57 +0100 Subject: [PATCH] symbols: don't over-align generated data x86 is one of the few architectures where .align has the same meaning as .balign; most other architectures (Arm, PPC, and RISC-V in particular) give it the same meaning as .p2align. Aligning every one of these item to 256 bytes (on all 64-bit architectures except x86-64) is clearly too much. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen/tools/symbols.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/tools/symbols.c b/xen/tools/symbols.c index 67560605f2..dbf441c6ea 100644 --- a/xen/tools/symbols.c +++ b/xen/tools/symbols.c @@ -304,10 +304,10 @@ static void write_src(void) printf("#include \n"); printf("#if BITS_PER_LONG == 64 && !defined(SYMBOLS_ORIGIN)\n"); printf("#define PTR .quad\n"); - printf("#define ALGN .align 8\n"); + printf("#define ALGN .balign 8\n"); printf("#else\n"); printf("#define PTR .long\n"); - printf("#define ALGN .align 4\n"); + printf("#define ALGN .balign 4\n"); printf("#endif\n"); printf("\t.section .rodata, \"a\"\n"); -- 2.39.5