I\'m trying to create a simple kernel using Ubuntu. In the terminal I typed
ld -Ttext 0x1000 -o kernel.bin loader.o main.o Video.o
But I got
Use 64 bits instead of 32 for your loader and compile it with the following command:
nasm -f elf64 loader.asm -o loader.o
This should solve your error