grub-mkimage64.c 707 B

123456789101112131415161718192021222324252627
  1. #define MKIMAGE_ELF64 1
  2. # define SUFFIX(x) x ## 64
  3. # define ELFCLASSXX ELFCLASS64
  4. # define Elf_Ehdr Elf64_Ehdr
  5. # define Elf_Phdr Elf64_Phdr
  6. # define Elf_Nhdr Elf64_Nhdr
  7. # define Elf_Addr Elf64_Addr
  8. # define Elf_Sym Elf64_Sym
  9. # define Elf_Off Elf64_Off
  10. # define Elf_Shdr Elf64_Shdr
  11. # define Elf_Rela Elf64_Rela
  12. # define Elf_Rel Elf64_Rel
  13. # define Elf_Word Elf64_Word
  14. # define Elf_Half Elf64_Half
  15. # define Elf_Section Elf64_Section
  16. # define ELF_R_SYM(val) ELF64_R_SYM(val)
  17. # define ELF_R_TYPE(val) ELF64_R_TYPE(val)
  18. # define ELF_ST_TYPE(val) ELF64_ST_TYPE(val)
  19. #define XEN_NOTE_SIZE 120
  20. #define XEN_PVH_NOTE_SIZE 24
  21. #ifndef GRUB_MKIMAGEXX
  22. #include "grub-mkimagexx.c"
  23. #endif