* util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
This commit is contained in:
parent
2024ade285
commit
881c6a1049
2 changed files with 10 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
|
||||
|
|
|
@ -171,6 +171,9 @@ SUFFIX (generate_elf) (const struct grub_install_image_target_desc *image_target
|
|||
phdr->p_filesz = phdr->p_memsz
|
||||
= 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
|
||||
+ image_target->mod_gap,
|
||||
image_target->mod_align);
|
||||
|
|
Loading…
Reference in a new issue