]> xenbits.xensource.com Git - xen.git/commitdiff
symbols: don't over-align generated data
authorJan Beulich <jbeulich@suse.com>
Tue, 18 Mar 2025 08:44:57 +0000 (09:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 18 Mar 2025 08:44:57 +0000 (09:44 +0100)
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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/tools/symbols.c

index 67560605f2175db1ac46124daf7bfec33d88b8f2..dbf441c6eac15de4be362a36de499fb15ce8190e 100644 (file)
@@ -304,10 +304,10 @@ static void write_src(void)
        printf("#include <xen/config.h>\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");