qemu-intel64/qemu.ld: align _ebss to 16

Align _ebss to 16, otherwise g_idle_topstack is not correctly aligned.
For some reason the previous alignment worked with make buit but in case
of cmake with optimization enabled, the IDLE stack was misaligned which
caused vector instruction misalignment exception.

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz 2024-02-07 15:00:51 +01:00 committed by Alan Carvalho de Assis
parent 16e47d6c8b
commit 53fcaede28

View File

@ -98,7 +98,7 @@ SECTIONS
*(.bss .bss.*) *(.bss .bss.*)
*(.gnu.linkonce.b.*) *(.gnu.linkonce.b.*)
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(16);
_ebss = ABSOLUTE(.); _ebss = ABSOLUTE(.);
} }