I am programming in 64 bits. How I can linking object files for YASM and GCC?
yasm.asm
bits 64
GLOBAL _start
_start: mov rax,41h
mov ah, 0eh
int 10h
jmp _start
gcc.c
main(){
start();
}
Linking *.o for YASM and GCC
Re:Linking *.o for YASM and GCC
Have you tried to declare start() function as extern in your gcc.c file ?
(be sure you've to prefix start with "_" : it depends on the system you have !)
(be sure you've to prefix start with "_" : it depends on the system you have !)
Re:Linking *.o for YASM and GCC
Are you seriously trying to call a 16-bit BIOS routine from 64-bit mode?