]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix compilation issue for ppc
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 3 Dec 2009 21:45:41 +0000 (22:45 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 3 Dec 2009 21:45:41 +0000 (22:45 +0100)
loader/powerpc/ieee1275/linux.c

index 79fbf0b02545a03f23316df022309a97ff65a056..1056ab9ebadb59a624da5d40561e0a609949ebf6 100644 (file)
@@ -110,7 +110,7 @@ grub_linux_load32 (grub_elf_t elf)
   if (entry == 0)
     entry = 0x01400000;
 
-  linux_size = grub_elf32_size (elf);
+  linux_size = grub_elf32_size (elf, 0);
   if (linux_size == 0)
     return grub_errno;
   /* Pad it; the kernel scribbles over memory beyond its load address.  */
@@ -160,7 +160,7 @@ grub_linux_load64 (grub_elf_t elf)
   if (entry == 0)
     entry = 0x01400000;
 
-  linux_size = grub_elf64_size (elf);
+  linux_size = grub_elf64_size (elf, 0);
   if (linux_size == 0)
     return grub_errno;
   /* Pad it; the kernel scribbles over memory beyond its load address.  */