mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2024-11-23 14:26:52 -08:00
fixed build script by adding compiler flags -fno-pie and -fno-pic
This commit is contained in:
parent
2f55de96a2
commit
d8eaa406e7
2
build.sh
Normal file → Executable file
2
build.sh
Normal file → Executable file
@ -22,7 +22,7 @@ nasm -f elf32 boot.asm -o boot.o
|
||||
|
||||
# Compile and link the kernel
|
||||
echo "Compiling and linking kernel..."
|
||||
gcc -m32 -ffreestanding -nostdlib kernel.c boot.o -o kernel.bin -T linker.ld
|
||||
gcc -m32 -ffreestanding -nostdlib -fno-pic -fno-pie kernel.c boot.o -o kernel.bin -T linker.ld
|
||||
|
||||
# Check if compilation was successful
|
||||
if [ -f kernel.bin ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user