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:
parent
0ff26f0850
commit
f43c943ebe
1 changed files with 1 additions and 0 deletions
|
|
@ -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 $< $@
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue