Skip to contentSkip to conversation

powerpc: Fix powerpc vmlinux.lds.S

PATCH In review Benjamin Herrenschmidt 3 participants 3 messages May 22, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix powerpc vmlinux.lds.S

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 !

---

arch/powerpc/kernel/vmlinux.lds.S +0 -1
Index: linux-work/arch/powerpc/kernel/vmlinux.lds.S
===================================================================
@@ -34,7 +34,6 @@ SECTIONS
 	/* Text and gots */
 	.text : {
 		_text = .;
-		*(.text.*)
 		TEXT_TEXT
 		SCHED_TEXT
 		LOCK_TEXT
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Benjamin Herrenschmidt

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".

Quoted 1 line

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

Quoted 21 lines

---

Index: linux-work/arch/powerpc/kernel/vmlinux.lds.S
===================================================================

arch/powerpc/kernel/vmlinux.lds.S +0 -1
@@ -34,7 +34,6 @@ SECTIONS
 	/* Text and gots */
 	.text : {
 		_text = .;
-		*(.text.*)
 		TEXT_TEXT
 		SCHED_TEXT
 		LOCK_TEXT

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Acked-by
#2 lore raw
Quoted 6 lines · On Tue, 22 May 2007 10:01:44 -0500 Will Schmidt <[email protected]>…
Quoted 4 lines · Benjamin Herrenschmidt

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 !

Quoted 8 lines

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

Quoted 1 line

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

same here.

Quoted 2 lines

Kim