I've been attempting to compile all my code using a Makefile and Dockerfile, but everytime I use make build-x86_64, I keep getting an error saying:
x86_64-elf-ld: warning: cannot find entry symbol start; defaulting to 0000000000100150
If I'm not wrong, this error is probably coming from my main64.asm file. The code for that file being this:
global long_mode_start
extern kernel_main
section .text
bits 64
long_mode_start:
; load null into all data segment registers
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
call kernel_main
hlt
(If you were wondering, I was following a tutorial and they didn't mention this error occuring.)
All I know is that this is a error related to assembly code, but I don't know which file the error comes from plus I don't know how to fix the error, does anybody know how to fix it? Thanks :)