forked from pool/grub2
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
|
Index: grub-2.02~beta2/util/mkimage.c
|
||
|
===================================================================
|
||
|
--- grub-2.02~beta2.orig/util/mkimage.c
|
||
|
+++ grub-2.02~beta2/util/mkimage.c
|
||
|
@@ -354,13 +354,10 @@ static const struct grub_install_image_t
|
||
|
{
|
||
|
.dirname = "powerpc-ieee1275",
|
||
|
.names = { "powerpc-ieee1275", NULL },
|
||
|
-
|
||
|
-#ifdef __powerpc64__
|
||
|
+#ifdef __powerpc64le__
|
||
|
.voidp_sizeof = 8,
|
||
|
- .elf_target = EM_PPC64,
|
||
|
#else
|
||
|
.voidp_sizeof = 4,
|
||
|
- .elf_target = EM_PPC,
|
||
|
#endif
|
||
|
|
||
|
#ifdef __powerpc64le__
|
||
|
@@ -368,7 +365,6 @@ static const struct grub_install_image_t
|
||
|
#else
|
||
|
.bigendian = 1,
|
||
|
#endif
|
||
|
-
|
||
|
.id = IMAGE_PPC,
|
||
|
.flags = PLATFORM_FLAGS_NONE,
|
||
|
.total_module_size = TARGET_NO_FIELD,
|
||
|
@@ -378,6 +374,11 @@ static const struct grub_install_image_t
|
||
|
.section_align = 1,
|
||
|
.vaddr_offset = 0,
|
||
|
.link_addr = GRUB_KERNEL_POWERPC_IEEE1275_LINK_ADDR,
|
||
|
+#ifdef __powerpc64le__
|
||
|
+ .elf_target = EM_PPC64,
|
||
|
+#else
|
||
|
+ .elf_target = EM_PPC,
|
||
|
+#endif
|
||
|
.mod_gap = GRUB_KERNEL_POWERPC_IEEE1275_MOD_GAP,
|
||
|
.mod_align = GRUB_KERNEL_POWERPC_IEEE1275_MOD_ALIGN,
|
||
|
.link_align = 4
|