From 9e5b4f00602175c08b55f9cc9809014f372ce44d Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 26 Jan 2021 08:43:06 +0100 Subject: [PATCH] Revert "makefile: disable pie" This reverts commit f64bbd9d9015467647f82e9049ebca848fd15365. it leads to "Error loading uncompressed kernel without PVH ELF Note" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6c0de78..bd84d3c 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ cobj=$(csrc:%.c=%.o) arch/$(ARCH)/cpu_context_switch.o arch/$(ARCH)/irq_pit.o deps = $(csrc:%.c=%.d) kernel:$(asmobj) $(cobj) linker.ld - $(CC) -m32 -ffreestanding -nostdlib $(cobj) $(asmobj) -o $@ -T linker.ld -lgcc -no-pie + $(CC) -m32 -ffreestanding -nostdlib $(cobj) $(asmobj) -o $@ -T linker.ld -lgcc objcopy --only-keep-debug $@ $@.sym objcopy --strip-debug $@