* 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

@ -2,6 +2,7 @@
* kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
`GRUB_MOD_GAP' for platforms in which it's not defined. `GRUB_MOD_GAP' for platforms in which it's not defined.
* util/elf/grub-mkimage.c (add_segments): Likewise.
2008-01-27 Robert Millan <rmh@aybabtu.com> 2008-01-27 Robert Millan <rmh@aybabtu.com>

View file

@ -217,6 +217,11 @@ add_segments (char *dir, FILE *out, int chrp, char *mods[])
{ {
grub_addr_t modbase; 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. */ /* Place modules just after grub segment. */
modbase = ALIGN_UP(grub_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN); modbase = ALIGN_UP(grub_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);