mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-05-12 11:42:57 -04:00
Align stack size to 16-byte boundary by changing __stack_size from 350 to 352 (#1335)
This commit updates the __stack_size definition in the linker flags, changing its value from 350 to 352. This change ensures that the stack size is a multiple of 16, aligning the stack pointer (sp) to a 16-byte boundary as required by the system architecture.
This commit is contained in:
parent
2625a12c04
commit
9165944664
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ endif
|
||||||
|
|
||||||
LDFLAGS += -nostartfiles -Xlinker --gc-sections -Wl,-Map,$(OUTPUT_DIR)/RTOSDemo.map \
|
LDFLAGS += -nostartfiles -Xlinker --gc-sections -Wl,-Map,$(OUTPUT_DIR)/RTOSDemo.map \
|
||||||
-T./fake_rom.ld -march=$(MARCH) -mabi=$(MABI) -mcmodel=$(MCMODEL) -Xlinker \
|
-T./fake_rom.ld -march=$(MARCH) -mabi=$(MABI) -mcmodel=$(MCMODEL) -Xlinker \
|
||||||
--defsym=__stack_size=350 -Wl,--start-group -Wl,--end-group
|
--defsym=__stack_size=352 -Wl,--start-group -Wl,--end-group
|
||||||
|
|
||||||
ifeq ($(PICOLIBC),1)
|
ifeq ($(PICOLIBC),1)
|
||||||
LDFLAGS += --specs=picolibc.specs --oslib=semihost --crt0=minimal -DPICOLIBC_INTEGER_PRINTF_SCANF
|
LDFLAGS += --specs=picolibc.specs --oslib=semihost --crt0=minimal -DPICOLIBC_INTEGER_PRINTF_SCANF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue