This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new f43c943ebea arch/arm/rp2040: Silence "LOAD segment with RWX permissions" linker warnings f43c943ebea is described below commit f43c943ebea768c7055487164db4d5a9dbfa7b00 Author: Niccolò Maggioni <nicco.maggi...@gmail.com> AuthorDate: Thu Aug 21 14:10:20 2025 +0200 arch/arm/rp2040: Silence "LOAD segment with RWX permissions" linker warnings This arch uses code relocation to SRAM through a XIP unit, so forcing segment permissions manually in the linker script could create unforeseen issues. A quick fix is setting the "--no-warn-rwx-segments" linker option just for for the incriminated stage2 bootloader binary. Signed-off-by: Niccolò Maggioni <nicco.maggioni+nu...@gmail.com> --- arch/arm/src/rp2040/boot2/Make.defs | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/rp2040/boot2/Make.defs b/arch/arm/src/rp2040/boot2/Make.defs index 2e37d119ebd..d8b376af711 100644 --- a/arch/arm/src/rp2040/boot2/Make.defs +++ b/arch/arm/src/rp2040/boot2/Make.defs @@ -44,6 +44,7 @@ BOOT2CFLAGS += -I$(PICO_SDK_PATH)/src/rp2_common/pico_platform_common/include # BOOT2CFLAGS += -I$(PICO_SDK_PATH)/src/rp2_common/pico_platform_compiler/include BOOT2CFLAGS += -I$(PICO_SDK_PATH)/src/rp2_common/pico_platform_sections/include BOOT2CFLAGS += -I$(PICO_SDK_PATH)/src/rp2_common/pico_platform_panic/include +BOOT2CFLAGS += -Wl,--no-warn-rwx-segments $(BOOT_STAGE2).S: %.S: %.bin python3 $(BOOT2DIR)/pad_checksum -s 0xffffffff $< $@