chibios: disable RWX segment warning on newer GNU lds (#22007)

This commit is contained in:
Thomas Weißschuh 2023-11-13 23:29:12 +01:00 committed by GitHub
parent 970e0b18a2
commit de3c42125b
Failed to generate hash of commit
3 changed files with 12 additions and 6 deletions

View file

@ -12,9 +12,7 @@ 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 =
ifeq ("$(shell echo "int main(){}" | $(CC) --param=min-pagesize=0 -x c - -o /dev/null 2>&1)", "")
COMPILEFLAGS += --param=min-pagesize=0
endif
COMPILEFLAGS += $(call cc-option, --param=min-pagesize=0)
COMPILEFLAGS += -funsigned-char
COMPILEFLAGS += -funsigned-bitfields