diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-25 23:44:40 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-25 23:44:40 +0100 |
| commit | 5d56d1a5b4d52702eb4e4ea6f05e4b6eebf41ca8 (patch) | |
| tree | 1ddc17cf4524254edf322da50e5c12261715b648 /Makefile | |
| parent | 3ec35b5abeb9765c419cf896338de7d95143bc9b (diff) | |
UBSAN - FINALLY FIXING UNDEFINED BEHAVIOUR
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,8 +7,8 @@ LD = $(ARCH)ld OBJDUMP = $(ARCH)objcopy OBJCOPY = $(ARCH)objdump -W := -Wall -Werror -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align -W += -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations +W := -Wall -Werror -Wextra -Wshadow -Wpointer-arith -Wcast-align +W += -Wwrite-strings W += -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wconversion W += -Wstrict-prototypes WNO := -Wno-error=unused-parameter -Wno-error=unused-variable @@ -19,6 +19,7 @@ CFLAGS += -mgeneral-regs-only # disables SIMD instructions CFLAGS += -MD -O3 -ffreestanding -nostdlib CFLAGS += -fno-common -fno-stack-protector CFLAGS += -fno-pie -no-pie -fno-pic +CFLAGS += -g -fsanitize=undefined LDFLAGS = -z max-page-size=4096 MAKE:=$(MAKE) -s |
