]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/riscv: align __bss_start
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Wed, 31 May 2023 09:59:53 +0000 (11:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 May 2023 09:59:53 +0000 (11:59 +0200)
bss clear cycle requires proper alignment of __bss_start.

ALIGN(PAGE_SIZE) before "*(.bss.page_aligned)" in xen.lds.S
was removed as any contribution to "*(.bss.page_aligned)" have to
specify proper aligntment themselves.

Fixes: cfa0409f7cbb ("xen/riscv: initialize .bss section")
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Bobby Eshleman <bobbyeshleman@gmail.com>
xen/arch/riscv/xen.lds.S

index 3e80d6632fb5b0faedacd123a50b1cc12df2f3ed..878130f3133068a028c5c12f3f53fc4fc392fa30 100644 (file)
@@ -137,9 +137,9 @@ SECTIONS
     __init_end = .;
 
     .bss : {                     /* BSS */
+        . = ALIGN(POINTER_ALIGN);
         __bss_start = .;
         *(.bss.stack_aligned)
-        . = ALIGN(PAGE_SIZE);
         *(.bss.page_aligned)
         . = ALIGN(PAGE_SIZE);
         __per_cpu_start = .;