Commit e805cfe6 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild/modules: Don't save the license string

Again, the license string is only used at load time, so no need
to store it permanently in kernel memory.
parent c8b4778d
...@@ -1065,6 +1065,7 @@ static struct module *load_module(void *umod, ...@@ -1065,6 +1065,7 @@ static struct module *load_module(void *umod,
/* MODULE_LICENSE() */ /* MODULE_LICENSE() */
DEBUGP("Licence found in section %u\n", i); DEBUGP("Licence found in section %u\n", i);
licenseindex = i; licenseindex = i;
sechdrs[i].sh_flags &= ~(unsigned long)SHF_ALLOC;
} else if (strcmp(secstrings+sechdrs[i].sh_name, } else if (strcmp(secstrings+sechdrs[i].sh_name,
"__vermagic") == 0 && "__vermagic") == 0 &&
(sechdrs[i].sh_flags & SHF_ALLOC)) { (sechdrs[i].sh_flags & SHF_ALLOC)) {
......
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