Fix linker script stack alignment for boards with SRAM stack.

* The stack pointer needs to be aligned to 8 bytes to conform with EABI, most of the boards are configured
to use ITCM for stack, which starts at 0 and are Not affected by the linker script alignment. This patch
fixes the issue with boards that use SRAM for stack which can get misaligned.
This commit is contained in:
iabdalkader 2021-02-23 19:30:53 +02:00
parent ff19149f59
commit 9fc9e76644

View File

@ -208,11 +208,11 @@ SECTIONS
/* Make sure there is enough ram for the stack */
._stack (NOLOAD) :
{
. = ALIGN(4);
. = ALIGN(8);
_sstack = .;
. = . + _stack_size;
. = ALIGN(4);
. = ALIGN(8);
_estack = .;
} >OMV_STACK_MEMORY