patch-2.3.99-pre9 linux/arch/ppc/treeboot/mkirimg

Next file: linux/arch/ppc/vmlinux.lds
Previous file: linux/arch/ppc/treeboot/mkevimg
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/arch/ppc/treeboot/mkirimg linux/arch/ppc/treeboot/mkirimg
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
 #
 #    Copyright (c) 1998-1999 TiVo, Inc.
 #      Original ELF parsing code.
@@ -332,7 +332,7 @@
   syswrite(OUTPUT, $ibuf, $initialOffset);
 
   if ($imageFound) {
-    $testN = pack ("I2", $bss_addr + $bss_size, $image_size);
+    $testN = pack ("N2", $bss_addr + $bss_size, $image_size);
     syswrite(OUTPUT, $testN, length($testN));
     printf("Updated symbol \"imageSect_start\" to 0x%08x\n",
 	   $bss_addr + $bss_size);
@@ -342,7 +342,7 @@
   }
 
   if ($initrdFound) {
-    $testN = pack ("I2", $bss_addr + $bss_size + $image_size, $initrd_size);
+    $testN = pack ("N2", $bss_addr + $bss_size + $image_size, $initrd_size);
     syswrite(OUTPUT, $testN, length($testN));
     printf("Updated symbol \"initrdSect_start\" to 0x%08x\n",
 	   $bss_addr + $bss_size + $image_size);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)