Revert "makefile: disable pie"
This reverts commit f64bbd9d90
.
it leads to "Error loading uncompressed kernel without PVH ELF Note"
This commit is contained in:
parent
f64bbd9d90
commit
9e5b4f0060
2
Makefile
2
Makefile
@ -20,7 +20,7 @@ cobj=$(csrc:%.c=%.o) arch/$(ARCH)/cpu_context_switch.o arch/$(ARCH)/irq_pit.o
|
|||||||
deps = $(csrc:%.c=%.d)
|
deps = $(csrc:%.c=%.d)
|
||||||
|
|
||||||
kernel:$(asmobj) $(cobj) linker.ld
|
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 --only-keep-debug $@ $@.sym
|
||||||
objcopy --strip-debug $@
|
objcopy --strip-debug $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user