LD Linker Error
Posted: Tue May 27, 2008 2:52 am
Hello, I am new to this forum, and I'm sorry if I have posted on the wrong board. If so, please tell me where else to post this.
I am new to OS development. I have just used gcc and nasm to create two .o files (one being kernel.o, and the other being main.o).
They both compile fine. However, when I come to use the LD Linker, I get an error:
Cheers, ollie123.
I am new to OS development. I have just used gcc and nasm to create two .o files (one being kernel.o, and the other being main.o).
They both compile fine. However, when I come to use the LD Linker, I get an error:
This is the command line I am using for LD:kernel.o: file not recognized: File format not recognized
I would appreciate a response.ld -e _begin -Ttext 0x1000 -o first.bin kernel.o main.o
Cheers, ollie123.