macho32.c 552 B

12345678910111213141516171819
  1. #include <grub/cpu/macho.h>
  2. #include <grub/machoload.h>
  3. #define SUFFIX(x) x ## 32
  4. typedef struct grub_macho_header32 grub_macho_header_t;
  5. typedef struct grub_macho_segment32 grub_macho_segment_t;
  6. typedef grub_uint32_t grub_macho_addr_t;
  7. typedef struct grub_macho_thread32 grub_macho_thread_t;
  8. #define offsetXX offset32
  9. #define ncmdsXX ncmds32
  10. #define cmdsizeXX cmdsize32
  11. #define cmdsXX cmds32
  12. #define endXX end32
  13. #define XX "32"
  14. #define GRUB_MACHO_MAGIC GRUB_MACHO_MAGIC32
  15. #define GRUB_MACHO_CMD_SEGMENT GRUB_MACHO_CMD_SEGMENT32
  16. #include "machoXX.c"