reduce string table for loaded modules
PATCH 2/2 reduce string table for loaded modules
Also remove all parts of the string table (referenced by the symbol table) that are not needed for kallsyms use (i.e. which were only referenced by symbols discarded by the previous patch, or not referenced at all for whatever reason).
Signed-off-by Jan Beulich <[email protected]>
--- include/linux/module.h | 2 - kernel/module.c | 71 +++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 58 insertions(+), 15 deletions(-)
include/linux/module.h +1 -1
@@ -310,7 +310,7 @@ struct module/* We keep the symbol and string tables for kallsyms. */ Elf_Sym *symtab, *core_symtab;unsigned int num_symtab, core_num_syms; -char *strtab; +char *strtab, *core_strtab;/* Section attributes */ struct module_sect_attrs *sect_attrs;
kernel/module.c +57 -14
170 lines not on this page · raw message