* util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.

This commit is contained in:
Vladimir Serbinenko 2013-11-10 19:34:19 +01:00
parent 2024ade285
commit 881c6a1049
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2013-11-10 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels. * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.

View file

@ -171,6 +171,9 @@ SUFFIX (generate_elf) (const struct grub_install_image_target_desc *image_target
phdr->p_filesz = phdr->p_memsz phdr->p_filesz = phdr->p_memsz
= grub_host_to_target32 (*core_size - kernel_size); = grub_host_to_target32 (*core_size - kernel_size);
if (image_target->id == IMAGE_COREBOOT)
target_addr_mods = GRUB_KERNEL_I386_COREBOOT_MODULES_ADDR;
else
target_addr_mods = ALIGN_UP (target_addr + kernel_size + bss_size target_addr_mods = ALIGN_UP (target_addr + kernel_size + bss_size
+ image_target->mod_gap, + image_target->mod_gap,
image_target->mod_align); image_target->mod_align);