Messages in this thread | | | Date | Tue, 28 Jul 1998 15:45:52 +0200 (CEST) | From | "Krzysztof G. Baranowski" <> | Subject | Re: LKPK (Live Kernel Patching Kit) |
| |
Hi Adam,
>I think it is insmod which,rightly, complains that it can't >find the variable which is not being exported. When I wanted to use the function that was not exported by the kernel, I resolved the address by hand. The only requirement was that the address of the variable/function must have been defined in the System.map. Some sort of:
--- cut --- struct module* (*find_module)() = (void *) 0x00115c28;
int init_module(void) { struct module *mod;
mod = find_module("foo"); [...] --- cut ---
If I remebmer correctly DosEMU folks written the insmod that was doing the same thing (ie. resolving the offending addresses from System.map. HTH.
Kris -- Krzysztof G. Baranowski - President of the Harmless Manyacs' Club "Smith & Wesson - The original point and click interface..." http://www.knm.org.pl/ <prezes@manjak.knm.org.pl>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |