module.h 874 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _ASM_PPC64_MODULE_H
  2. #define _ASM_PPC64_MODULE_H
  3. #include <linux/list.h>
  4. #include <asm/bug.h>
  5. struct mod_arch_specific
  6. {
  7. /* Index of stubs section within module. */
  8. unsigned int stubs_section;
  9. /* What section is the TOC? */
  10. unsigned int toc_section;
  11. /* List of BUG addresses, source line numbers and filenames */
  12. struct list_head bug_list;
  13. struct bug_entry *bug_table;
  14. unsigned int num_bugs;
  15. };
  16. extern struct bug_entry *module_find_bug(unsigned long bugaddr);
  17. #define Elf_Shdr Elf64_Shdr
  18. #define Elf_Sym Elf64_Sym
  19. #define Elf_Ehdr Elf64_Ehdr
  20. /* Make empty section for module_frob_arch_sections to expand. */
  21. #ifdef MODULE
  22. asm(".section .stubs,\"ax\",@nobits; .align 3; .previous");
  23. #endif
  24. struct exception_table_entry;
  25. void sort_ex_table(struct exception_table_entry *start,
  26. struct exception_table_entry *finish);
  27. #endif /* _ASM_PPC64_MODULE_H */