Fix: Fixed QEMU and Bootloader errors (started from 32-bit -> 64-bit)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
echo ">>> Compiling bootloader"
|
||||
nasm boot.asm -o boot.o -f elf64
|
||||
nasm boot.asm -o boot.o -f elf32
|
||||
|
||||
echo ">>> Compiling kernel"
|
||||
gcc kernel.c -o kernel.o -c -m64 -ffreestanding -nostdlib
|
||||
gcc kernel.c -o kernel.o -c -m32 -ffreestanding -nostdlib -no-pie
|
||||
|
||||
echo ">>> Linking kernel"
|
||||
ld -T linker.ld -o SoraOS boot.o kernel.o
|
||||
gcc -m32 -nostdlib -no-pie -T linker.ld -o SoraOS boot.o kernel.o
|
||||
|
||||
Reference in New Issue
Block a user