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:
Luca Mannella 2025-04-08 07:54:31 +02:00 committed by GitHub
parent 2625a12c04
commit 9165944664
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ endif
LDFLAGS += -nostartfiles -Xlinker --gc-sections -Wl,-Map,$(OUTPUT_DIR)/RTOSDemo.map \
-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)
LDFLAGS += --specs=picolibc.specs --oslib=semihost --crt0=minimal -DPICOLIBC_INTEGER_PRINTF_SCANF