commit 02d3b233ab4405e86b57bdb39f03981196c1c09b parent 4c625d8286daba3540ce421cbb8100fac8d9e2c8 Author: Joel Challis <git@zvecr.com> Date: Mon, 13 Nov 2023 23:45:40 +0000 chibios: disable RWX segment warning on newer GNU lds (#22471) Diffstat:
| M | platforms/chibios/platform.mk | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/platforms/chibios/platform.mk b/platforms/chibios/platform.mk @@ -476,6 +476,11 @@ HEX = $(OBJCOPY) -O $(FORMAT) EEP = BIN = $(OBJCOPY) -O binary +# disable warning about RWX triggered by ChibiOS linker scripts +ifeq ("$(shell echo "int main(){}" | $(CC) -shared -Wl,--no-warn-rwx-segments -x c - -o /dev/null 2>&1)", "") + SHARED_LDFLAGS += -Wl,--no-warn-rwx-segments +endif + ############################################################################## # Make targets #