File 0007-grub-module-verifier-add-arch-ppc64le.patch of Package grub2.16099

Index: grub-2.02~beta2/util/grub-module-verifier.c
===================================================================
--- grub-2.02~beta2.orig/util/grub-module-verifier.c
+++ grub-2.02~beta2/util/grub-module-verifier.c
@@ -22,6 +22,19 @@ struct grub_module_verifier_arch archs[]
       -1
     }
   },
+#ifdef __powerpc64le__
+  { "powerpc", 8, 0, EM_PPC64, GRUB_MODULE_VERIFY_SUPPORTS_RELA, (int[]){
+      GRUB_ELF_R_PPC_REL24, /* It has limited range but GRUB adds trampolines when necessarry.  */
+      GRUB_ELF_R_PPC64_ADDR64,
+      GRUB_ELF_R_PPC64_TOC,
+      GRUB_ELF_R_PPC64_TOC16_HA,
+      GRUB_ELF_R_PPC64_TOC16_LO,
+      GRUB_ELF_R_PPC64_TOC16_LO_DS,
+      GRUB_ELF_R_PPC64_REL16_HA,
+      GRUB_ELF_R_PPC64_REL16_LO,
+      -1
+    } },
+#else
   { "powerpc", 4, 1, EM_PPC, GRUB_MODULE_VERIFY_SUPPORTS_RELA, (int[]){
       GRUB_ELF_R_PPC_ADDR16_LO,
       GRUB_ELF_R_PPC_REL24, /* It has limited range but GRUB adds trampolines when necessarry.  */
@@ -30,6 +43,7 @@ struct grub_module_verifier_arch archs[]
       GRUB_ELF_R_PPC_REL32,
       -1
     } },
+#endif
   { "sparc64", 8, 1, EM_SPARCV9, GRUB_MODULE_VERIFY_SUPPORTS_RELA, (int[]){
       R_SPARC_WDISP30, /* It has limited range but GRUB adds trampolines when necessarry. */
       R_SPARC_HH22,
openSUSE Build Service is sponsored by