[parisc-linux] Dump: pb with module_list

Richard Hirst rhirst@linuxcare.com
Wed, 23 Jan 2002 22:00:33 +0000


On Wed, Jan 23, 2002 at 07:15:40PM +0100, Bruno Vidal wrote:
> 	Hi
> There is something I don't understand (and I really
> dont like to not understand). I didn't have any pb
> with utsname. But now I want to retrieve the loaded 
> modules at dump time. In order to do that, I wrote
> a very simple loop (it is based on find_module function).
> It is based on the pointer "module_list". this is define
> in linux/module.h as: 
> extern struct module *module_list;
> 
> Because I don't want to modify kernel/module.c
> I've put my function in my dump_base.c
> (it already include linux/module.h). It compile right,
> but when using depmod, insmod, etc...:
> dump.o: unresolved symbol module_list
> I've already recompile the entire kernel, make dep, etc...
> 
> I'm probably missing something, but what ????

You need to export the symbol for modules to see it.  See
arch/parisc/kernel/parisc_ksyms.c for example.

Richard