From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index fc9e72f1..c6dac4cb 100644 --- a/makefile +++ b/makefile @@ -99,7 +99,7 @@ endif KBUILD_LDFLAGS := KBUILD_ASFLAGS := ifeq ($(CONFIG_DEBUG),y) -KBUILD_CFLAGS += -g -Og -fno-omit-frame-pointer +KBUILD_CFLAGS += -g -O0 -fno-omit-frame-pointer -fno-stack-protector else KBUILD_CFLAGS += -O2 -fdata-sections -ffunction-sections KBUILD_CFLAGS += -fno-unwind-tables -fomit-frame-pointer @@ -108,18 +108,18 @@ KBUILD_CFLAGS += -flto KBUILD_LDFLAGS += --gc-sections KBUILD_LDFLAGS += --build-id=none KBUILD_LDFLAGS += --as-needed -KBUILD_LDFLAGS += --strip-all +# KBUILD_LDFLAGS += --strip-all KBUILD_LDFLAGS += -z relro -z now -z noexecstack KBUILD_LDFLAGS += --no-undefined KBUILD_LDFLAGS += --icf=all -KBUILD_ASFLAGS += +KBUILD_ASFLAGS += endif # Assembly does not need -nostdinc; clang warns it is unused. KBUILD_ASFLAGS += -target $(ARCH)-linux-eabi KBUILD_ASFLAGS += -I$(srctree)/include -KBUILD_ASFLAGS += -I$(srctree)/include/arch/$(ARCH) +KUILD_ASFLAGS += -I$(srctree)/include/arch/$(ARCH) PHONY := -- cgit v1.2.3