Code: Select all
i686-elf-g++ -c kernel.cpp -o kernel.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions -fno-rtti
i686-elf-as boot.asm -o boot.o
i686-elf-gcc -T linker.ld -o PinkSeagle.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
My kernel is straight from Bare Bones, and the asm has a modification to accout for the name of the main function being modified in compilation to '_Z11kernel_mainv'. The linking script is also straight from bare bones.
The kernel is checked by grub-file and has a valid multiboot header, and i start up QEMU.
It gets to the grub menu, i hit enter over my operating system and QEMU shows a black screen with a blinking cursor. I saw no errors during building, creating the cross compiler, or from mkrescue, so I'm confused.
Any Help is Appreciated,
My Thanks
Sean