ld: cannot find entry symbol
Posted: Wed Mar 05, 2008 8:39 pm
Hello everyone! I'm just getting started with OS dev. So far, I've had success with assembly only code (babysteps), but when I attempt a mixed language kernel (barebones C), I have problems. The compiling works fine, and generates good .o files, but when I try to link with
it outputs
Apparently ld can't access loader.o properly. I'm pretty sure what I typed into the command prompt is wrong, because Barebones didn't mention anything about the link command. Any suggestions?
I would be glad to update the tutorial once I get this figured out to prevent further confusion.
Thanks in advance!
Code: Select all
ld -T linker.ld -o kernel.bin loader.o kernel.o
Code: Select all
ld: warning: cannot find entry symbol _loader; defaulting to 00100000
I would be glad to update the tutorial once I get this figured out to prevent further confusion.
Thanks in advance!