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+nuttx@gmail.com>
This commit is contained in:
Niccolò Maggioni 2025-08-21 14:10:20 +02:00 committed by Xiang Xiao
parent 0ff26f0850
commit f43c943ebe

View file

@ -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 $< $@