Page 1 of 1

Linking *.o for YASM and GCC

Posted: Mon Feb 21, 2005 1:54 pm
by Demoh
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();

}

Re:Linking *.o for YASM and GCC

Posted: Fri Mar 18, 2005 2:54 pm
by Silverhawk
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 !)

Re:Linking *.o for YASM and GCC

Posted: Sat Mar 19, 2005 8:42 am
by Candy
Are you seriously trying to call a 16-bit BIOS routine from 64-bit mode?