Disable red-zone
This commit is contained in:
parent
87d8c9c713
commit
2e8efd4117
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user