Commit 0571739c authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Add dependency info to modules

During postprocessing, we get the information which modules we depend on 
(i.e. which modules export symbols we need to import) for free, so we
record it in .modinfo. This may allow us to remove the "depmod" program
at a later time, though for now it remains working as usual.
parent b3e8b708
......@@ -1455,9 +1455,9 @@ static const char *get_ksymbol(struct module *mod,
/* At worse, next value is at end of module */
if (within(addr, mod->module_init, mod->init_size))
nextval = (unsigned long)mod->module_core+mod->core_size;
nextval = (unsigned long)mod->module_init + mod->init_size;
else
nextval = (unsigned long)mod->module_init+mod->init_size;
nextval = (unsigned long)mod->module_core + mod->core_size;
/* Scan for closest preceeding symbol, and next symbol. (ELF
starts real symbols at 1). */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment