[PATCH] linking zImage with biarch ld

Arnd Bergmann arnd at arndb.de
Thu Mar 10 00:01:16 EST 2005


I noticed that with the vDSO patch in 2.6.11-bk, it's almost possible to build
the kernel with the fedora biarch toolchain. However, I still get warnings
from ld about zImage being the wrong architecture, unless I change the script
as shown in this patch.

I'm not sure if this breaks setups with old binutils that might not understand
powerpc:common, otherwise please apply.

Signed-off-by: Arnd Bergmann <arnd at arndb.de>

--- 1.4/arch/ppc64/boot/zImage.lds 2004-09-17 00:34:55 -04:00
+++ edited/arch/ppc64/boot/zImage.lds 2005-03-08 11:03:50 -05:00
@@ -1,4 +1,4 @@
-OUTPUT_ARCH(powerpc)
+OUTPUT_ARCH(powerpc:common)
 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
 /* Do we need any of these for elf?
    __DYNAMIC = 0;    */



More information about the Linuxppc64-dev mailing list