1
0
Fork 0

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

This reverts commit de3c42125b.
This commit is contained in:
Nick Brassel 2023-11-14 09:41:12 +11:00 committed by GitHub
parent 1efc79063c
commit 4c625d8286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 12 deletions

View file

@ -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