module: add module_elf_check_arch for module-specific checks
[linux-2.6-microblaze.git] / include / linux / moduleloader.h
index 9e09d11..7b4587a 100644 (file)
@@ -13,6 +13,9 @@
  * must be implemented by each architecture.
  */
 
+/* arch may override to do additional checking of ELF header architecture */
+bool module_elf_check_arch(Elf_Ehdr *hdr);
+
 /* Adjust arch-specific sections.  Return 0 on success.  */
 int module_frob_arch_sections(Elf_Ehdr *hdr,
                              Elf_Shdr *sechdrs,