mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
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:
committed by
Xiang Xiao
parent
0ff26f0850
commit
f43c943ebe
@@ -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_compiler/include
|
||||||
BOOT2CFLAGS += -I$(PICO_SDK_PATH)/src/rp2_common/pico_platform_sections/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 += -I$(PICO_SDK_PATH)/src/rp2_common/pico_platform_panic/include
|
||||||
|
BOOT2CFLAGS += -Wl,--no-warn-rwx-segments
|
||||||
|
|
||||||
$(BOOT_STAGE2).S: %.S: %.bin
|
$(BOOT_STAGE2).S: %.S: %.bin
|
||||||
python3 $(BOOT2DIR)/pad_checksum -s 0xffffffff $< $@
|
python3 $(BOOT2DIR)/pad_checksum -s 0xffffffff $< $@
|
||||||
|
|||||||
Reference in New Issue
Block a user