Commit 01d2c044 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] modules: skip debug sections

From: Tom Rini <trini@kernel.crashing.org>

Skip debug sections of modules - taking 12 minutes to load the ipv6 module
is a bug.  :)
parent c04e456f
...@@ -88,6 +88,10 @@ static unsigned long get_plt_size(const Elf32_Ehdr *hdr, ...@@ -88,6 +88,10 @@ static unsigned long get_plt_size(const Elf32_Ehdr *hdr,
!= is_init) != is_init)
continue; continue;
/* We don't want to look at debug sections. */
if (strstr(secstrings + sechdrs[i].sh_name, ".debug") != 0)
continue;
if (sechdrs[i].sh_type == SHT_RELA) { if (sechdrs[i].sh_type == SHT_RELA) {
DEBUGP("Found relocations in section %u\n", i); DEBUGP("Found relocations in section %u\n", i);
DEBUGP("Ptr: %p. Number: %u\n", DEBUGP("Ptr: %p. Number: %u\n",
......
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