> The way symbols are extracted from a module and inserted into a
> running kernel is by exporting the "__ksymtab" and ".kstrtab" sections
> of the module into the kernel.... In other words, your "elf" trick
> you described is already in use.
OK, so __ksymtab of module foo.o records the symbols exported by foo.o.
Insmod extracts that information and uses it in the init_module
system call. This will update the kernel ksymtab so that later modules
can reference that symbols, too.
> The only problem with this is that you have to relocate the module so
> it's compatible with kernel-space.... (open the destination memory,
> then upload the module into that memory, then initialize). The
> current scheme works better actually here.
Isn't that was insmod already does? As far as I can tell insmod
insists on being a self-contained mini-linker (without employing
the help of ld or the like).
Chhers, Roderich
-- Vinny: Is it possible, the two utes... Judge: Eh, the two what? Uh, uh, what was that word? Vinny: Uh, what word? Judge: Two what? Vinny: What? Judge: Uh, did you say 'Utes'? Vinny: Yeah, two utes. Judge: What is a ute? Vinny: Oh, excuse me, your honor. Two YOUTHS. Roderich Schupp mailto:rsch@ExperTeam.de ExperTeam GmbH http://www.experteam.de/ Munich, Germany Linux: 2.1.76