mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 01:47:10 +06:00
chibios: disable RWX segment warning on newer GNU lds (#22471)
This commit is contained in:
parent
4c625d8286
commit
02d3b233ab
|
@ -476,6 +476,11 @@ HEX = $(OBJCOPY) -O $(FORMAT)
|
||||||
EEP =
|
EEP =
|
||||||
BIN = $(OBJCOPY) -O binary
|
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
|
# Make targets
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user