module.h 932 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_MODULE_H
  9. #define _ASM_MICROBLAZE_MODULE_H
  10. /* Microblaze Relocations */
  11. #define R_MICROBLAZE_NONE 0
  12. #define R_MICROBLAZE_32 1
  13. #define R_MICROBLAZE_32_PCREL 2
  14. #define R_MICROBLAZE_64_PCREL 3
  15. #define R_MICROBLAZE_32_PCREL_LO 4
  16. #define R_MICROBLAZE_64 5
  17. #define R_MICROBLAZE_32_LO 6
  18. #define R_MICROBLAZE_SRO32 7
  19. #define R_MICROBLAZE_SRW32 8
  20. #define R_MICROBLAZE_64_NONE 9
  21. #define R_MICROBLAZE_32_SYM_OP_SYM 10
  22. /* Keep this the last entry. */
  23. #define R_MICROBLAZE_NUM 11
  24. struct mod_arch_specific {
  25. int foo;
  26. };
  27. #define Elf_Shdr Elf32_Shdr
  28. #define Elf_Sym Elf32_Sym
  29. #define Elf_Ehdr Elf32_Ehdr
  30. typedef struct { volatile int counter; } module_t;
  31. #endif /* _ASM_MICROBLAZE_MODULE_H */