Fix: Fixed QEMU and Bootloader errors (started from 32-bit -> 64-bit)

This commit is contained in:
AfonsoCMSousa
2025-11-18 18:52:51 +00:00
parent f2f3037313
commit 751c1f527d
5 changed files with 35 additions and 12 deletions
+3 -3
View File
@@ -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