2008-11-22 17:38:55

by Al Viro

[permalink] [raw]
Subject: [PATCH 17/32] fix the section noise in sparc head.S


usual .text.head trick

Signed-off-by: Al Viro <[email protected]>
---
arch/sparc/kernel/head.S | 2 +-
arch/sparc/kernel/vmlinux.lds.S | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/sparc/kernel/head.S b/arch/sparc/kernel/head.S
--- a/arch/sparc/kernel/head.S
+++ b/arch/sparc/kernel/head.S
@@ -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 */
diff --git a/arch/sparc/kernel/vmlinux.lds.S b/arch/sparc/kernel/vmlinux.lds.S
--- a/arch/sparc/kernel/vmlinux.lds.S
+++ b/arch/sparc/kernel/vmlinux.lds.S
@@ -13,6 +13,7 @@ SECTIONS
.text 0xf0004000 :
{
_text = .;
+ *(.text.head)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT


2008-11-26 09:06:46

by David Miller

[permalink] [raw]
Subject: Re: [PATCH 17/32] fix the section noise in sparc head.S

From: Al Viro <[email protected]>
Date: Sat, 22 Nov 2008 17:36:04 +0000

>
> usual .text.head trick
>
> Signed-off-by: Al Viro <[email protected]>

Applied.