diff options
author | dzwdz | 2022-07-18 18:06:20 +0200 |
---|---|---|
committer | dzwdz | 2022-07-18 18:06:20 +0200 |
commit | 9a41e57c2edeb32ae3cd530e761133883d491075 (patch) | |
tree | 93ceacff188cf382e8c2a8c61ddf99b82a21d0d3 /Makefile | |
parent | d43c1af88b1834a00f8b5f09aa0af1a5e4f5b4aa (diff) |
user: basic elf relocations, PIE support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |