Disable red-zone

This commit is contained in:
Thomas Lovén 2022-01-20 15:30:59 +01:00
parent 87d8c9c713
commit 2e8efd4117
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ CC := ${TARGET}-gcc
SRC := $(shell find -type f -name '*.[cS]*')
OBJ := $(patsubst %, %.o, $(basename $(basename $(SRC))))
CFLAGS := -Wall -Wextra -pedantic -ffreestanding -mcmodel=large -std=c2x
CFLAGS := -Wall -Wextra -pedantic -ffreestanding -mcmodel=large -std=c2x -mno-red-zone
CFLAGS += -ggdb -O0
ASFLAGS += -ggdb
CPPFLAGS += -nostdinc -I include -I /opt/sysroot/usr/include

View File

@ -8,7 +8,7 @@ SRC := $(shell find -type f -name '*.[cS]*')
OBJ := $(patsubst %, %.o, $(basename $(basename $(SRC))))
HDR := $(shell find -type f -name '*.h')
CFLAGS := -Wall -Wextra -pedantic -ffreestanding -mcmodel=large -std=c2x
CFLAGS := -Wall -Wextra -pedantic -ffreestanding -mcmodel=large -std=c2x -mno-red-zone
CFLAGS += -ggdb -O0
ASFLAGS += -ggdb
CPPFLAGS += -nostdinc -I include -I /opt/sysroot/usr/include

View File

@ -21,7 +21,7 @@ rm -r *
--prefix=${SYSROOT}/usr \
--disable-shared \
--enable-debug \
CFLAGS="-O0 -mcmodel=large"
CFLAGS="-O0 -mcmodel=large -mno-red-zone"
make
make install-headers