makefile: disable pie

This commit is contained in:
Mathieu Maret 2021-01-25 20:29:40 +01:00
parent 5ab68d8197
commit f64bbd9d90

View File

@ -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
$(CC) -m32 -ffreestanding -nostdlib $(cobj) $(asmobj) -o $@ -T linker.ld -lgcc -no-pie
objcopy --only-keep-debug $@ $@.sym
objcopy --strip-debug $@