[kernel] r7044 - dists/trunk/linux-kbuild-2.6/src/mod

Bastian Blank waldi at costa.debian.org
Wed Jul 19 21:39:14 UTC 2006


Author: waldi
Date: Wed Jul 19 21:38:36 2006
New Revision: 7044

Modified:
   dists/trunk/linux-kbuild-2.6/src/mod/module.cpp

Log:
src/mod/module.cpp: Remove error for missing modinfo section.


Modified: dists/trunk/linux-kbuild-2.6/src/mod/module.cpp
==============================================================================
--- dists/trunk/linux-kbuild-2.6/src/mod/module.cpp	(original)
+++ dists/trunk/linux-kbuild-2.6/src/mod/module.cpp	Wed Jul 19 21:38:36 2006
@@ -69,16 +69,13 @@
       symtab = dynamic_cast <Elf::section_type<Elf::section_type_SYMTAB> *> (*it);
   }
 
-  if (!is_vmlinux && !modinfo)
-    throw std::runtime_error ("Not a kernel module, lacks modinfo section");
   if (!symtab)
     throw std::runtime_error ("Not a kernel module, lacks symbol table");
 
-  if (!is_vmlinux)
-  {
+  if (modinfo)
     read_modinfo (modinfo);
-    symbols_undefined.insert (std::pair<std::string, symbol_undefined> ("struct_module", symbol_undefined ("struct_module", 0)));
-  }
+  symbols_undefined.insert (std::pair<std::string, symbol_undefined> ("struct_module", symbol_undefined ("struct_module", 0)));
+
   read_symtab (symtab);
 }
 



More information about the Kernel-svn-changes mailing list