diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index b0d7c2a41bd9..031bf26af8ea 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -1828,8 +1828,9 @@ static struct module *load_module(void __user *umod, | |||
1828 | unwindex = find_sec(hdr, sechdrs, secstrings, ARCH_UNWIND_SECTION_NAME); | 1828 | unwindex = find_sec(hdr, sechdrs, secstrings, ARCH_UNWIND_SECTION_NAME); |
1829 | #endif | 1829 | #endif |
1830 | 1830 | ||
1831 | /* Don't keep modinfo section */ | 1831 | /* Don't keep modinfo and version sections. */ |
1832 | sechdrs[infoindex].sh_flags &= ~(unsigned long)SHF_ALLOC; | 1832 | sechdrs[infoindex].sh_flags &= ~(unsigned long)SHF_ALLOC; |
1833 | sechdrs[versindex].sh_flags &= ~(unsigned long)SHF_ALLOC; | ||
1833 | #ifdef CONFIG_KALLSYMS | 1834 | #ifdef CONFIG_KALLSYMS |
1834 | /* Keep symbol and string tables for decoding later. */ | 1835 | /* Keep symbol and string tables for decoding later. */ |
1835 | sechdrs[symindex].sh_flags |= SHF_ALLOC; | 1836 | sechdrs[symindex].sh_flags |= SHF_ALLOC; |