diff options
| author | Nick Brassel <nick@tzarc.org> | 2023-11-14 09:41:12 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 22:41:12 +0000 |
| commit | 4c625d8286daba3540ce421cbb8100fac8d9e2c8 (patch) | |
| tree | 85b7b5edbdb990535eb0428512796f5b1b71e697 /platforms | |
| parent | 1efc79063c5bc5fae6766f7555738b122ef8988d (diff) | |
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 | |||
| 12 | EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) | 12 | EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) |
| 13 | BIN = | 13 | BIN = |
| 14 | 14 | ||
| 15 | COMPILEFLAGS += $(call cc-option, --param=min-pagesize=0) | 15 | ifeq ("$(shell echo "int main(){}" | $(CC) --param=min-pagesize=0 -x c - -o /dev/null 2>&1)", "") |
| 16 | COMPILEFLAGS += --param=min-pagesize=0 | ||
| 17 | endif | ||
| 16 | 18 | ||
| 17 | COMPILEFLAGS += -funsigned-char | 19 | COMPILEFLAGS += -funsigned-char |
| 18 | COMPILEFLAGS += -funsigned-bitfields | 20 | 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) | |||
| 476 | EEP = | 476 | EEP = |
| 477 | BIN = $(OBJCOPY) -O binary | 477 | BIN = $(OBJCOPY) -O binary |
| 478 | 478 | ||
| 479 | # disable warning about RWX triggered by ChibiOS linker scripts | ||
| 480 | SHARED_LDFLAGS += $(call cc-option, -Wl$(,)--no-warn-rwx-segments) | ||
| 481 | |||
| 482 | ############################################################################## | 479 | ############################################################################## |
| 483 | # Make targets | 480 | # Make targets |
| 484 | # | 481 | # |
