[PATCH] linking zImage with biarch ld

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Mar 10 08:39:48 EST 2005


On Wed, 2005-03-09 at 14:01 +0100, Arnd Bergmann wrote:
> 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.

"Almost possible" ? What's wrong ? Only that ?

> 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;    */
-- 
Benjamin Herrenschmidt <benh at kernel.crashing.org>




More information about the Linuxppc64-dev mailing list