system call stub generation

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

 



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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux