[PATCH] powerpc: Fix zImage.coff on oldworld PowerMac

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Oct 3 14:27:16 EST 2006


Recent changes to the PowerPC zImage wrapper broke zImage.coff due to
the addition of new ELF sections that aren't very well converted to
xcoff and not supported by old OpenFirmware. This fixes it by putting
those sections in the xcoff .data.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Index: linux-work/arch/powerpc/boot/zImage.coff.lds
===================================================================
--- linux-work.orig/arch/powerpc/boot/zImage.coff.lds	2006-03-10 15:58:17.000000000 +1100
+++ linux-work/arch/powerpc/boot/zImage.coff.lds	2006-10-03 13:56:35.000000000 +1000
@@ -15,6 +15,7 @@ SECTIONS
   {
     *(.rodata*)
     *(.data*)
+    *(__builtin_*)
     *(.sdata*)
     __got2_start = .;
     *(.got2)





More information about the Linuxppc-dev mailing list