mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
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:
parent
ff19149f59
commit
9fc9e76644
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user