summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordzwdz2022-07-18 18:06:20 +0200
committerdzwdz2022-07-18 18:06:20 +0200
commit9a41e57c2edeb32ae3cd530e761133883d491075 (patch)
tree93ceacff188cf382e8c2a8c61ddf99b82a21d0d3 /Makefile
parentd43c1af88b1834a00f8b5f09aa0af1a5e4f5b4aa (diff)
user: basic elf relocations, PIE support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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