diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-02-14 08:31:48 -0600 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-02-14 08:31:48 -0600 |
| commit | 0571739cd43b80de3bfa08f55fbcf410878cbe75 (patch) | |
| tree | 180013dba21d07348f98edfb2ef5d2b2b51734c9 /kernel | |
| parent | b3e8b7081800ec0452e432d01ae55bc327da4b5f (diff) | |
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.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/module.c b/kernel/module.c index 8a7b70fc4548..3e36848e0702 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -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). */ |
