From efe5fc5ba52d131baa3d5b297fd7585dfa2eca2b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 24 Mar 2024 22:54:10 -0400 Subject: libc: build: Fixup Makefile Signed-off-by: Ian Moffett --- lib/libc/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 9135d20..fabb532 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -11,7 +11,8 @@ build/ld.so: build/ linker/entry.c linker/entry.S mkdir -p $(@D) $(CC) $(CFLAGS) linker/entry.S -o build/entry.S.o $(CC) $(CFLAGS) linker/entry.c -o build/entry.o - $(LD) build/entry.o build/entry.S.o -o $(LIBC_OBJ) -o $@ + $(LD) -znoexecstack $(LIBC_OBJ) \ + build/entry.o build/entry.S.o -o $@ %.o: %.c $(CC) $(CFLAGS) $< -o $@ -- cgit v1.2.3