From: acevest Date: Mon, 15 May 2023 11:25:00 +0000 (+0000) Subject: fix missing .note.GNU-stack section implies executable stack X-Git-Url: http://zhaoyanbai.com/repos/man.named.html?a=commitdiff_plain;h=2e10d7b67f310a576788af5f297cf604ee202cb4;p=kernel.git fix missing .note.GNU-stack section implies executable stack --- diff --git a/Makefile b/Makefile index e3db78e..a12c79e 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ HEADER_FILES := $(foreach DIR, $(INC_DIRS), $(wildcard $(DIR)/*.h)) OBJS := $(patsubst %,%.o,$(SOURCE_FILES)) ${KERNELBIN}: ${OBJS} - ${LD} -m elf_i386 -M -T$(LINKSCRIPT) $(OBJS) -o $@ > $(SYSTEMMAP) + ${LD} -z noexecstack -m elf_i386 -M -T$(LINKSCRIPT) $(OBJS) -o $@ > $(SYSTEMMAP) nm -a $@ > kernel.sym rm kernel/setup.c.o