module.h 629 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _ASM_ARM_MODULE_H
  2. #define _ASM_ARM_MODULE_H
  3. #define Elf_Shdr Elf32_Shdr
  4. #define Elf_Sym Elf32_Sym
  5. #define Elf_Ehdr Elf32_Ehdr
  6. struct unwind_table;
  7. #ifdef CONFIG_ARM_UNWIND
  8. struct arm_unwind_mapping {
  9. Elf_Shdr *unw_sec;
  10. Elf_Shdr *sec_text;
  11. struct unwind_table *unwind;
  12. };
  13. enum {
  14. ARM_SEC_INIT,
  15. ARM_SEC_DEVINIT,
  16. ARM_SEC_CORE,
  17. ARM_SEC_MAX,
  18. };
  19. struct mod_arch_specific {
  20. struct arm_unwind_mapping map[ARM_SEC_MAX];
  21. };
  22. #else
  23. struct mod_arch_specific {
  24. };
  25. #endif
  26. /*
  27. * Include the ARM architecture version.
  28. */
  29. #define MODULE_ARCH_VERMAGIC "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
  30. #endif /* _ASM_ARM_MODULE_H */