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]*')
|
SRC := $(shell find -type f -name '*.[cS]*')
|
||||||
OBJ := $(patsubst %, %.o, $(basename $(basename $(SRC))))
|
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
|
CFLAGS += -ggdb -O0
|
||||||
ASFLAGS += -ggdb
|
ASFLAGS += -ggdb
|
||||||
CPPFLAGS += -nostdinc -I include -I /opt/sysroot/usr/include
|
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))))
|
OBJ := $(patsubst %, %.o, $(basename $(basename $(SRC))))
|
||||||
HDR := $(shell find -type f -name '*.h')
|
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
|
CFLAGS += -ggdb -O0
|
||||||
ASFLAGS += -ggdb
|
ASFLAGS += -ggdb
|
||||||
CPPFLAGS += -nostdinc -I include -I /opt/sysroot/usr/include
|
CPPFLAGS += -nostdinc -I include -I /opt/sysroot/usr/include
|
||||||
|
@ -21,7 +21,7 @@ rm -r *
|
|||||||
--prefix=${SYSROOT}/usr \
|
--prefix=${SYSROOT}/usr \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-debug \
|
--enable-debug \
|
||||||
CFLAGS="-O0 -mcmodel=large"
|
CFLAGS="-O0 -mcmodel=large -mno-red-zone"
|
||||||
|
|
||||||
make
|
make
|
||||||
make install-headers
|
make install-headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user