grub-mkimage32.c 646 B

1234567891011121314151617181920212223
  1. #define MKIMAGE_ELF32 1
  2. # define SUFFIX(x) x ## 32
  3. # define ELFCLASSXX ELFCLASS32
  4. # define Elf_Ehdr Elf32_Ehdr
  5. # define Elf_Phdr Elf32_Phdr
  6. # define Elf_Nhdr Elf32_Nhdr
  7. # define Elf_Addr Elf32_Addr
  8. # define Elf_Sym Elf32_Sym
  9. # define Elf_Off Elf32_Off
  10. # define Elf_Shdr Elf32_Shdr
  11. # define Elf_Rela Elf32_Rela
  12. # define Elf_Rel Elf32_Rel
  13. # define Elf_Word Elf32_Word
  14. # define Elf_Half Elf32_Half
  15. # define Elf_Section Elf32_Section
  16. # define ELF_R_SYM(val) ELF32_R_SYM(val)
  17. # define ELF_R_TYPE(val) ELF32_R_TYPE(val)
  18. # define ELF_ST_TYPE(val) ELF32_ST_TYPE(val)
  19. #define XEN_NOTE_SIZE 132
  20. #include "grub-mkimagexx.c"