From f43c943ebea768c7055487164db4d5a9dbfa7b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Maggioni?= Date: Thu, 21 Aug 2025 14:10:20 +0200 Subject: [PATCH] arch/arm/rp2040: Silence "LOAD segment with RWX permissions" linker warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 2e37d119eb..d8b376af71 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 $< $@