Skip to content

Commit a01da1d

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-module-and-param
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-module-and-param: Revert "module: remove the SHF_ALLOC flag on the __versions section."
2 parents 44d84af + 2e45e77 commit a01da1d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎kernel/module.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,9 +1952,6 @@ static noinline struct module *load_module(void __user *umod,
19521952
if (strstarts(secstrings+sechdrs[i].sh_name, ".exit"))
19531953
sechdrs[i].sh_flags &= ~(unsigned long)SHF_ALLOC;
19541954
#endif
1955-
/* Don't keep __versions around; it's just for loading. */
1956-
if (strcmp(secstrings + sechdrs[i].sh_name, "__versions") == 0)
1957-
sechdrs[i].sh_flags &= ~(unsigned long)SHF_ALLOC;
19581955
}
19591956

19601957
modindex = find_sec(hdr, sechdrs, secstrings,

0 commit comments

Comments
 (0)