module.h 448 B

123456789101112131415161718192021222324
  1. #ifndef _ALPHA_MODULE_H
  2. #define _ALPHA_MODULE_H
  3. struct mod_arch_specific
  4. {
  5. unsigned int gotsecindex;
  6. };
  7. #define Elf_Sym Elf64_Sym
  8. #define Elf_Shdr Elf64_Shdr
  9. #define Elf_Ehdr Elf64_Ehdr
  10. #define Elf_Phdr Elf64_Phdr
  11. #define Elf_Dyn Elf64_Dyn
  12. #define Elf_Rel Elf64_Rel
  13. #define Elf_Rela Elf64_Rela
  14. #define ARCH_SHF_SMALL SHF_ALPHA_GPREL
  15. #ifdef MODULE
  16. asm(".section .got,\"aws\",@progbits; .align 3; .previous");
  17. #endif
  18. #endif /*_ALPHA_MODULE_H*/