what is this erld: warning: cannot find entry symbol start; defaulting to 0000000000001000
ld: kernel.o: in function main':
kernel.c:(.text+0x10): undefined reference to_GLOBAL_OFFSET_TABLE'
make: *** [Makefile:9: kernel.bin] Error 1
ror?
My professional interests are cloud and big data technologies, machine learning, and software development. I like to read source code and research papers to understand how stuff works.
Pronoun: He
My professional interests are cloud and big data technologies, machine learning, and software development. I like to read source code and research papers to understand how stuff works.
Pronoun: He
mes db "Hi, i'm hecker !", 10, 0
mov bx, mes
print:
mov ah, 0x0e
mov al, byte [bx]
int 0x10
inc bx
cmp al, 0
je exit
jne print
exit:
hlt
times 510-($-$$) db 0
db 0x55, 0xaa
what is this erld: warning: cannot find entry symbol start; defaulting to 0000000000001000
ld: kernel.o: in function
main':
_GLOBAL_OFFSET_TABLE'kernel.c:(.text+0x10): undefined reference to
make: *** [Makefile:9: kernel.bin] Error 1
ror?
I don't know? What did you do?
I do start makefile
I wrote and tested this only on Mac. Are you using Linux?
yes
same problem in macOS
I know its late but add -fno-pie to gcc compilation
May I know the code with -fno-pie added?
its --no-pie and not -fno-pie
Adding -fno-pie in gcc fix the problem to me
gcc -fno-pie -m32 -ffreestanding -c kernel.c -o kernel.o