Skip to contentSkip to conversation

fix the section noise in sparc head.S

PATCH Applied Al Viro 2 participants 2 messages Nov 22, 2008 – Nov 26, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 17/32 fix the section noise in sparc head.S

usual .text.head trick

---
 arch/sparc/kernel/head.S        |    2 +-
 arch/sparc/kernel/vmlinux.lds.S |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
arch/sparc/kernel/head.S +1 -1
@@ -72,7 +72,7 @@ sun4e_notsup:
 	.align 4
 
 	/* The Sparc trap table, bootloader gives us control at _start. */
-	.text
+	.section .text.head,"ax"
 	.globl	start, _stext, _start, __stext
 	.globl  trapbase
 _start:   /* danger danger */
arch/sparc/kernel/vmlinux.lds.S +1 -0
@@ -13,6 +13,7 @@ SECTIONS
 	.text 0xf0004000 :
 	{
 		_text = .;
+		*(.text.head)
 		TEXT_TEXT
 		SCHED_TEXT
 		LOCK_TEXT