[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system call stub generation



hi all,

im trying to generate a stub for system call
 - long sys_test(void) - using macro _syscallx

with foll. user program -

#include <linux/unistd.h>
_syscall0(long, test);

on compiling the above, im getting foll. error -

/usr/lib/crt1.o:In function '_start'
/usr/lib/crt1.o(.text_ox18): undefined reference to 'main'
collect2: ld returned 1 exit status

Anybody knows what this means?
Nitin

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/