linking .o files into module

From: Daniel Schüle (uval_at_rz.uni-karlsruhe.de)
Date: 10/13/05


Date: Thu, 13 Oct 2005 21:07:57 +0200

Hello all,

suppose I have three files, a.o, b.0 and drv.o
how can I link them into say driver.o and
insmod it?

drv.o calls helper functions from the other
kernel in question is 2.4

gcc -o driver.o a.o b.o drv.o
doesn't do
it spits unresolved references to `__this_module`
and such, which are resolved by insmod.

Thanks in advance

Daniel