Skip to contentSkip to conversation

grub_elf32_size()

PATCH Robert Millan 1 participant 2 messages Dec 11, 2009 – Dec 24, 2009

lore
Share & tools
lore
#0 lore raw

Not sure if I missed something obvious, but this commit (relocator branch) seems to break compilation rather than fix it. Was grub_elf32_size() number of args meant to be changed?

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."

------------------------------------------------------------
revno: 1899
committer: Vladimir 'phcoder' Serbinenko <[email protected]> branch nick: relocators
timestamp: Thu 2009-12-03 22:45:41 +0100
message:
Fix compilation issue for ppc

=== modified file 'loader/powerpc/ieee1275/linux.c'

powerpc/ieee1275/linux.c +2 -2
@@ -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.  */
#1 lore raw

It seems this just didn't belong to relocator branch. Nothing to see here ;-)

Quoted 47 lines · Robert Millan

Not sure if I missed something obvious, but this commit (relocator branch) seems to break compilation rather than fix it. Was grub_elf32_size() number of args meant to be changed?

Signature · 15 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."

------------------------------------------------------------
revno: 1899
committer: Vladimir 'phcoder' Serbinenko <[email protected]>
branch nick: relocators
timestamp: Thu 2009-12-03 22:45:41 +0100
message:
  Fix compilation issue for ppc

=== modified file 'loader/powerpc/ieee1275/linux.c'
powerpc/ieee1275/linux.c +2 -2
@@ -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.  */

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 3 lines
Robert Millan

  "Be the change you want to see in the world" -- Gandhi