summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-01-24 09:48:27 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-01-24 09:48:27 -0600
commite805cfe600656184c9d81897920f044b95888902 (patch)
tree9628868dc214e40a1cae755ce682e82b078c0669 /kernel
parentc8b4778d746d79d81200cb6fea1bd4c8a9ab14a7 (diff)
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.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index cf95806be0bc..f54e6ada3d26 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1065,6 +1065,7 @@ static struct module *load_module(void *umod,
/* MODULE_LICENSE() */
DEBUGP("Licence found in section %u\n", i);
licenseindex = i;
+ sechdrs[i].sh_flags &= ~(unsigned long)SHF_ALLOC;
} else if (strcmp(secstrings+sechdrs[i].sh_name,
"__vermagic") == 0 &&
(sechdrs[i].sh_flags & SHF_ALLOC)) {