projects/linux·commit a01da1d0

Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-module-and-param

a01da1d0 · Linus Torvalds <[email protected]> · 2009-04-07 07:42:25 -07:00

* 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."
Commit
a01da1d0f643142fa6845eb3bd14daab8ce7bea5
Parents
44d84afa · 2e45e777

Merge commit. Changes below are compared with the first parent: 44d84afa.

Changes

1 files changed · +0 −3

FileStatusAddDelContent
kernel/module.cmodified+0−3View file

kernel/module.c

View file
diff --git a/kernel/module.c b/kernel/module.c
index c268a77..05f014e 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1952,9 +1952,6 @@ static noinline struct module *load_module(void __user *umod,
if (strstarts(secstrings+sechdrs[i].sh_name, ".exit"))
sechdrs[i].sh_flags &= ~(unsigned long)SHF_ALLOC;
#endif
- /* Don't keep __versions around; it's just for loading. */
- if (strcmp(secstrings + sechdrs[i].sh_name, "__versions") == 0)
- sechdrs[i].sh_flags &= ~(unsigned long)SHF_ALLOC;
}
modindex = find_sec(hdr, sechdrs, secstrings,