module.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. unsigned long gp; /* global-pointer for module */
  17. void *core_unw_table; /* core unwind-table cookie returned by unwinder */
  18. void *init_unw_table; /* init unwind-table cookie returned by unwinder */
  19. unsigned int next_got_entry; /* index of next available got entry */
  20. };
  21. #define Elf_Shdr Elf64_Shdr
  22. #define Elf_Sym Elf64_Sym
  23. #define Elf_Ehdr Elf64_Ehdr
  24. #define MODULE_PROC_FAMILY "ia64"
  25. #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
  26. #define ARCH_SHF_SMALL SHF_IA_64_SHORT
  27. #endif /* _ASM_IA64_MODULE_H */