On Thu, Feb 26, 2009 at 9:32 PM, Pei Lin <telent997@xxxxxxxxx> wrote: >>>>But during modposting stage, I suspect a CRC check is done, on top of >>>>just the "extern" call, but because sys_clock_gettime() is not >>>>declared as EXPORT_SYMBOL().....the symbol become not accessible from >>>>a module. but if u compile the codes together with the kernel ELF >>>>image, compilation and runtime should not have any error. Problem >>>>now is modposting check done for a module......correct? > In my opinion,i think when u compile a module ,only compile a C file > ,not link.like you do gcc -c *.c and make a object file.when you > insmod the module ,this moment begins to link and insmod performs like > a linker to do some symbol link check CRC etc. AFAIK, in 2.6 it's the kernel that solely does the linking and relocation. Insmod is simply helping loading the kernel module into RAM. Pre 2.6, it's true that insmod that does the job. regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ