macho32.c 712 B

1234567891011121314151617181920212223
  1. #include <grub/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 uncompressedXX uncompressed32
  14. #define compressedXX compressed32
  15. #define uncompressed_sizeXX uncompressed_size32
  16. #define compressed_sizeXX compressed_size32
  17. #define XX "32"
  18. #define GRUB_MACHO_MAGIC GRUB_MACHO_MAGIC32
  19. #define GRUB_MACHO_CMD_SEGMENT GRUB_MACHO_CMD_SEGMENT32
  20. #include "machoXX.c"