diff options
author | Nick Brassel <[email protected]> | 2023-11-14 09:41:12 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-13 22:41:12 +0000 |
commit | 4c625d8286daba3540ce421cbb8100fac8d9e2c8 (patch) | |
tree | 85b7b5edbdb990535eb0428512796f5b1b71e697 /platforms | |
parent | 1efc79063c5bc5fae6766f7555738b122ef8988d (diff) | |
download | qmk_firmware-4c625d8286daba3540ce421cbb8100fac8d9e2c8.tar.gz qmk_firmware-4c625d8286daba3540ce421cbb8100fac8d9e2c8.zip |
Revert "chibios: disable RWX segment warning on newer GNU lds (#22007)" (#22469)
This reverts commit de3c42125b661f62757f8ee4f6184c089340d3a0.
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/avr/platform.mk | 4 | ||||
-rw-r--r-- | platforms/chibios/platform.mk | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/platforms/avr/platform.mk b/platforms/avr/platform.mk index 8f8e01523f..aef449cadf 100644 --- a/platforms/avr/platform.mk +++ b/platforms/avr/platform.mk @@ -12,7 +12,9 @@ HEX = $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock -R .signature EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) BIN = -COMPILEFLAGS += $(call cc-option, --param=min-pagesize=0) +ifeq ("$(shell echo "int main(){}" | $(CC) --param=min-pagesize=0 -x c - -o /dev/null 2>&1)", "") +COMPILEFLAGS += --param=min-pagesize=0 +endif COMPILEFLAGS += -funsigned-char COMPILEFLAGS += -funsigned-bitfields diff --git a/platforms/chibios/platform.mk b/platforms/chibios/platform.mk index 6c38aa16a7..081b001e6d 100644 --- a/platforms/chibios/platform.mk +++ b/platforms/chibios/platform.mk @@ -476,9 +476,6 @@ HEX = $(OBJCOPY) -O $(FORMAT) EEP = BIN = $(OBJCOPY) -O binary -# disable warning about RWX triggered by ChibiOS linker scripts -SHARED_LDFLAGS += $(call cc-option, -Wl$(,)--no-warn-rwx-segments) - ############################################################################## # Make targets # |