module.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _ASM_IA64_MODULE_H
  2. #define _ASM_IA64_MODULE_H
  3. /*
  4. * IA-64-specific support for kernel module loader.
  5. *
  6. * Copyright (C) 2003 Hewlett-Packard Co
  7. * David Mosberger-Tang <davidm@hpl.hp.com>
  8. */
  9. struct elf64_shdr; /* forward declration */
  10. struct mod_arch_specific {
  11. struct elf64_shdr *core_plt; /* core PLT section */
  12. struct elf64_shdr *init_plt; /* init PLT section */
  13. struct elf64_shdr *got; /* global offset table */
  14. struct elf64_shdr *opd; /* official procedure descriptors */
  15. struct elf64_shdr *unwind; /* unwind-table section */
  16. #ifdef CONFIG_PARAVIRT
  17. struct elf64_shdr *paravirt_bundles;
  18. /* paravirt_alt_bundle_patch table */
  19. struct elf64_shdr *paravirt_insts;
  20. /* paravirt_alt_inst_patch table */
  21. #endif
  22. unsigned long gp; /* global-pointer for module */
  23. void *core_unw_table; /* core unwind-table cookie returned by unwinder */
  24. void *init_unw_table; /* init unwind-table cookie returned by unwinder */
  25. unsigned int next_got_entry; /* index of next available got entry */
  26. };
  27. #define Elf_Shdr Elf64_Shdr
  28. #define Elf_Sym Elf64_Sym
  29. #define Elf_Ehdr Elf64_Ehdr
  30. #define MODULE_PROC_FAMILY "ia64"
  31. #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY \
  32. "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
  33. #define ARCH_SHF_SMALL SHF_IA_64_SHORT
  34. #endif /* _ASM_IA64_MODULE_H */