From 5733d5874757c0ac9996923012f6b2e9a256bb6c Mon Sep 17 00:00:00 2001 From: mikee47 Date: Sun, 24 Mar 2024 09:55:56 +0000 Subject: [PATCH] Disable esp32 warning about RWX segments Check introduced with linker (LD, binutils 2.39) from IDF 5.2 onwards This specifically refers to IRAM, which we do actually need to be writeable and executable --- Sming/Arch/Esp32/app.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sming/Arch/Esp32/app.mk b/Sming/Arch/Esp32/app.mk index 32f75955d9..6cc8658584 100644 --- a/Sming/Arch/Esp32/app.mk +++ b/Sming/Arch/Esp32/app.mk @@ -9,6 +9,11 @@ LDFLAGS += \ -nostdlib \ -Wl,-static +ifeq ($(IDF_VERSION),v5.2) +LDFLAGS += \ + -Wl,--no-warn-rwx-segments +endif + ifdef IDF_TARGET_ARCH_RISCV LDFLAGS += \ -nostartfiles \