macho64.c 712 B

1234567891011121314151617181920212223
  1. #include <grub/macho.h>
  2. #include <grub/machoload.h>
  3. #define SUFFIX(x) x ## 64
  4. typedef struct grub_macho_header64 grub_macho_header_t;
  5. typedef struct grub_macho_segment64 grub_macho_segment_t;
  6. typedef grub_uint64_t grub_macho_addr_t;
  7. typedef struct grub_macho_thread64 grub_macho_thread_t;
  8. #define offsetXX offset64
  9. #define ncmdsXX ncmds64
  10. #define cmdsizeXX cmdsize64
  11. #define cmdsXX cmds64
  12. #define endXX end64
  13. #define uncompressedXX uncompressed64
  14. #define compressedXX compressed64
  15. #define uncompressed_sizeXX uncompressed_size64
  16. #define compressed_sizeXX compressed_size64
  17. #define XX "64"
  18. #define GRUB_MACHO_MAGIC GRUB_MACHO_MAGIC64
  19. #define GRUB_MACHO_CMD_SEGMENT GRUB_MACHO_CMD_SEGMENT64
  20. #include "machoXX.c"