* util/elf/grub-mkimage.c (add_segments): Likewise.

This commit is contained in:
robertmh 2008-01-27 23:16:58 +00:00
parent 3abc589f93
commit 962ca13330
2 changed files with 6 additions and 0 deletions

View file

@ -217,6 +217,11 @@ add_segments (char *dir, FILE *out, int chrp, char *mods[])
{
grub_addr_t modbase;
/* Only needed for Apple hardware (therefore, powerpc). */
#ifndef GRUB_MOD_GAP
#define GRUB_MOD_GAP 0
#endif
/* Place modules just after grub segment. */
modbase = ALIGN_UP(grub_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);