Commit 6ed81802 authored by Jim Cromie's avatar Jim Cromie Committed by Luis Chamberlain

module: in layout_sections, move_module: add the modname

layout_sections() and move_module() each issue ~50 messages for each
module loaded.  Add mod-name into their 2 header lines, to help the
reader find his module.

no functional changes.
Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 25be451a
...@@ -1567,10 +1567,10 @@ static void layout_sections(struct module *mod, struct load_info *info) ...@@ -1567,10 +1567,10 @@ static void layout_sections(struct module *mod, struct load_info *info)
for (i = 0; i < info->hdr->e_shnum; i++) for (i = 0; i < info->hdr->e_shnum; i++)
info->sechdrs[i].sh_entsize = ~0UL; info->sechdrs[i].sh_entsize = ~0UL;
pr_debug("Core section allocation order:\n"); pr_debug("Core section allocation order for %s:\n", mod->name);
__layout_sections(mod, info, false); __layout_sections(mod, info, false);
pr_debug("Init section allocation order:\n"); pr_debug("Init section allocation order for %s:\n", mod->name);
__layout_sections(mod, info, true); __layout_sections(mod, info, true);
} }
...@@ -2249,7 +2249,7 @@ static int move_module(struct module *mod, struct load_info *info) ...@@ -2249,7 +2249,7 @@ static int move_module(struct module *mod, struct load_info *info)
} }
/* Transfer each section which specifies SHF_ALLOC */ /* Transfer each section which specifies SHF_ALLOC */
pr_debug("final section addresses:\n"); pr_debug("Final section addresses for %s:\n", mod->name);
for (i = 0; i < info->hdr->e_shnum; i++) { for (i = 0; i < info->hdr->e_shnum; i++) {
void *dest; void *dest;
Elf_Shdr *shdr = &info->sechdrs[i]; Elf_Shdr *shdr = &info->sechdrs[i];
......
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