~ruther/qmk_firmware

02d3b233ab4405e86b57bdb39f03981196c1c09b — Joel Challis 1 year, 5 months ago 4c625d8
chibios: disable RWX segment warning on newer GNU lds (#22471)

1 files changed, 5 insertions(+), 0 deletions(-)

M platforms/chibios/platform.mk
M platforms/chibios/platform.mk => platforms/chibios/platform.mk +5 -0
@@ 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
#

Do not follow this link