[PATCH] powerpc: Fix powerpc vmlinux.lds.S

Will Schmidt will_schmidt at vnet.ibm.com
Wed May 23 01:01:44 EST 2007


On Tue, 2007-22-05 at 14:33 +1000, Benjamin Herrenschmidt wrote:
> Sam's recent changes broke things for us, some stuff sneaked in before
> the entry point. In fact, we don't need that *(.text.*) thing anymore
> and it incorrectly matched .text.init.refok, thus putting it
> before .text. .. ouch !

..  Which manifests itself on some systems as a hang after 
"returning from prom_init".  


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

Applying this makes my systems happy again... :-)

Acked-by:  Will Schmidt <will_schmidt at vnet.ibm.com>


> ---
> 
> Index: linux-work/arch/powerpc/kernel/vmlinux.lds.S
> ===================================================================
> --- linux-work.orig/arch/powerpc/kernel/vmlinux.lds.S	2007-05-22 14:16:39.000000000 +1000
> +++ linux-work/arch/powerpc/kernel/vmlinux.lds.S	2007-05-22 14:19:00.000000000 +1000
> @@ -34,7 +34,6 @@ SECTIONS
>  	/* Text and gots */
>  	.text : {
>  		_text = .;
> -		*(.text.*)
>  		TEXT_TEXT
>  		SCHED_TEXT
>  		LOCK_TEXT
> 
> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev




More information about the Linuxppc-dev mailing list