aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 79c4d6f69dd7..60cdd0459eac 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2045,7 +2045,8 @@ static void add_kallsyms(struct module *mod, struct load_info *info,
2045 2045
2046 mod->symtab = (void *)symsec->sh_addr; 2046 mod->symtab = (void *)symsec->sh_addr;
2047 mod->num_symtab = symsec->sh_size / sizeof(Elf_Sym); 2047 mod->num_symtab = symsec->sh_size / sizeof(Elf_Sym);
2048 mod->strtab = info->strtab; 2048 /* Make sure we get permanent strtab: don't use info->strtab. */
2049 mod->strtab = (void *)info->sechdrs[info->index.str].sh_addr;
2049 2050
2050 /* Set types up while we still have access to sections. */ 2051 /* Set types up while we still have access to sections. */
2051 for (i = 0; i < mod->num_symtab; i++) 2052 for (i = 0; i < mod->num_symtab; i++)