Linking with LD
Posted: Sun Sep 29, 2002 11:17 pm
Hi,
I have created a simple kernel in C, it just prints an 'A' to the screen and then hangs. The problem is that LD will not link it. I have tried
ld -Ttext 0x20000 -oformat binary -o kernel.bin kernel.o
and
ld kernel.o -o kernel.bin -oformat binary -Ttext 0x20000
both of these were given to me and none of them will work, I get an error saying 'cannot open binary: No such file or directory'
Any ideas?
Thanks.
I have created a simple kernel in C, it just prints an 'A' to the screen and then hangs. The problem is that LD will not link it. I have tried
ld -Ttext 0x20000 -oformat binary -o kernel.bin kernel.o
and
ld kernel.o -o kernel.bin -oformat binary -Ttext 0x20000
both of these were given to me and none of them will work, I get an error saying 'cannot open binary: No such file or directory'
Any ideas?
Thanks.