* util/elf/grub-mkimage.c (add_segments): Likewise.
This commit is contained in:
parent
3abc589f93
commit
962ca13330
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue