tech-kern archive

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

Re: library in kernel space




I think you can look at dk_subr module as an example of module_2
to export symbols for the run-time linker to resolve.

Ok, my problem is now different than I described:
module_1 and module_2 (dependency is that module_1 needs module_2)
used some shared source files with functions.
So small group of functions is linked to both modules and placed into text section (visible with letter "T" in nm output) And when I try modload ./module_2.kmod and then modload ./module_1.kmod then it complains:

...kobj_checksyms, 1036: [./module_1.kmod]: linker error: global symbol `MyFunctionName' redefined

Are names from all text sections put into global namespace ?
How to resolve it properly ?

Peter




Home | Main Index | Thread Index | Old Index