This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 198747322c1c701f770c7872c77edc49f6f22f86 Author: Marco Casaroli <[email protected]> AuthorDate: Thu Aug 13 18:52:55 2026 +0200 boards/lm3s6965-ek: Link the protected kernel against kflash. In a protected build the kernel must stay in the flash half that memory.ld gives it. ARCHSCRIPT selected ld.script, which declares the whole 256 KiB of flash as one region, so nothing held the kernel to its half. The kernel image grew past the boundary unseen: its .data initialiser ran 1384 bytes into 0x00020000, where the user image is programmed. Select memory.ld and kernel-space.ld when CONFIG_BUILD_PROTECTED is set. The link now fails when the kernel does not fit. Assisted-by: Claude Code:claude-opus-5 Signed-off-by: Marco Casaroli <[email protected]> --- boards/arm/tiva/lm3s6965-ek/scripts/Make.defs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/arm/tiva/lm3s6965-ek/scripts/Make.defs b/boards/arm/tiva/lm3s6965-ek/scripts/Make.defs index f7755da5572..db4d113b53e 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/Make.defs +++ b/boards/arm/tiva/lm3s6965-ek/scripts/Make.defs @@ -26,6 +26,9 @@ include $(TOPDIR)/arch/arm/src/armv7-m/Toolchain.defs ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y) ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)ld.sct +else ifeq ($(CONFIG_BUILD_PROTECTED),y) + ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)memory.ld + ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)kernel-space.ld else ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)ld.script endif
