fixed 64-bit loading
This commit is contained in:
parent
ab6e34cc81
commit
2943464811
1 changed files with 4 additions and 0 deletions
|
@ -129,6 +129,10 @@ SUFFIX (grub_macho_size) (grub_macho_t macho, grub_macho_addr_t *segments_start,
|
|||
grub_macho_segment_t *hdr = (grub_macho_segment_t *) hdr0;
|
||||
if (hdr->cmd != GRUB_MACHO_CMD_SEGMENT)
|
||||
return 0;
|
||||
|
||||
if (! hdr->vmsize)
|
||||
return 0;
|
||||
|
||||
if (! hdr->filesize && (flags & GRUB_MACHO_NOBSS))
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue