asm boot/mbr.asm -f bin -o boot/mbr.bin
nasm boot/kernel_entry.asm -f elf -o boot/kernel_entry.o
gcc -g -m32 -ffreestanding -c kernel/mem.c -o kernel/mem.o # -g for debugging
nasm cpu/interrupt.asm -f elf -o cpu/interrupt.o
gcc -g -m32 -ffreestanding -c kernel/util.c -o kernel/util.o # -g for debugging
gcc -g -m32 -ffreestanding -c kernel/kernel.c -o kernel/kernel.o # -g for debugging
gcc -g -m32 -ffreestanding -c drivers/display.c -o drivers/display.o # -g for debugging
gcc -g -m32 -ffreestanding -c drivers/ports.c -o drivers/ports.o # -g for debugging
gcc -g -m32 -ffreestanding -c drivers/keyboard.c -o drivers/keyboard.o # -g for debugging
gcc -g -m32 -ffreestanding -c cpu/isr.c -o cpu/isr.o # -g for debugging
gcc -g -m32 -ffreestanding -c cpu/idt.c -o cpu/idt.o # -g for debugging
gcc -g -m32 -ffreestanding -c cpu/timer.c -o cpu/timer.o # -g for debugging
ld -m elf_i386 -o kernel.bin -Ttext 0x1000 boot/kernel_entry.o kernel/mem.o cpu/interrupt.o kernel/util.o kernel/kernel.o drivers/display.o drivers/ports.o drivers/keyboard.o cpu/isr.o cpu/idt.o cpu/timer.o --oformat binary
ld: kernel/mem.o: in function `memory_copy':
/tmp/FrOS/kernel/mem.c:9: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: kernel/mem.o: in function `init_dynamic_mem':
/tmp/FrOS/kernel/mem.c:34: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: kernel/mem.o: in function `print_dynamic_node_size':
/tmp/FrOS/kernel/mem.c:41: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: kernel/mem.o: in function `print_dynamic_mem_node':
/tmp/FrOS/kernel/mem.c:49: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: kernel/mem.o: in function `print_dynamic_mem':
/tmp/FrOS/kernel/mem.c:61: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: kernel/mem.o:/tmp/FrOS/kernel/mem.c:71: more undefined references to `_GLOBAL_OFFSET_TABLE_' follow