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
I also faced the same problem, i figured out that i am 32 bit registers(eax,ecx,edx,ebx,esp,ebp,esi,edi) insist of 64 bit registers (rax,rcx,rdx,rbx,rsp,rbp,rsi,rdi), in my 64 bit computer. Then use these command to compile my program-
nasm -felf64 hello.asm ld hello.o ./a.out