diff options
author | Jan Beulich <JBeulich@novell.com> | 2009-07-06 09:50:42 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-24 11:02:57 -0400 |
commit | 4a4962263f07d14660849ec134ee42b63e95ea9a (patch) | |
tree | 0edfe694167c224a6d9e48901743edd478a71c29 /include/linux/module.h | |
parent | 94a8d5caba74211ec76dac80fc6e2d5c391530df (diff) |
module: reduce symbol table for loaded modules (v2)
Discard all symbols not interesting for kallsyms use: absolute,
section, and in the common case (!KALLSYMS_ALL) data ones.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 1c755b2f937d..1d3ccb173fd6 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -308,9 +308,13 @@ struct module | |||
308 | #endif | 308 | #endif |
309 | 309 | ||
310 | #ifdef CONFIG_KALLSYMS | 310 | #ifdef CONFIG_KALLSYMS |
311 | /* We keep the symbol and string tables for kallsyms. */ | 311 | /* |
312 | Elf_Sym *symtab; | 312 | * We keep the symbol and string tables for kallsyms. |
313 | unsigned int num_symtab; | 313 | * The core_* fields below are temporary, loader-only (they |
314 | * could really be discarded after module init). | ||
315 | */ | ||
316 | Elf_Sym *symtab, *core_symtab; | ||
317 | unsigned int num_symtab, core_num_syms; | ||
314 | char *strtab; | 318 | char *strtab; |
315 | 319 | ||
316 | /* Section attributes */ | 320 | /* Section attributes */ |