mell-o-tron / OS-Reference

80 stars 17 forks source link

i386-elf-ld: warning: cannot find entry symbol _start; defaulting to 0000000000001000 #7

Open pleaseBcool opened 2 years ago

pleaseBcool commented 2 years ago

In the 7th episode i think i did everything right but i'm still getting this error: "i386-elf-ld: warning: cannot find entry symbol _start; defaulting to 0000000000001000" when using this command: "i386-elf-ld -o "Binaries/full_kernel.bin" -Ttext 0x1000 "Binaries/kernel_entry.o" "Binaries/kernel.o" --oformat binary"

mell-o-tron commented 2 years ago

It's not really an error, just a warning, and it's not really something to worry about. One way to avoid it should be adding a _start symbol at the start, but it's not strictly necessary

ABC00012345 commented 7 months ago

add option -e (main function)