From 9a41e57c2edeb32ae3cd530e761133883d491075 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 18 Jul 2022 18:06:20 +0200 Subject: user: basic elf relocations, PIE support --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6820aef..01d17d8 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ initrd/test.elf: out/test.elf out/test.elf: src/usertestelf.ld out/obj/usertestelf.c.o out/obj/user/lib/syscall.s.o $(call from_sources, src/shared/) @mkdir -p $(@D) - @$(CC) $(LFLAGS) -T $^ -o $@ + @$(CC) $(LFLAGS) -Wl,-pie -Wl,-no-dynamic-linker -T $^ -o $@ # TODO automatically resolve symlinks out/initrd.tar: $(shell find initrd/) out/test.elf -- cgit v1.2.3