]> err.no Git - linux-2.6/commitdiff
sh: Move entry point code to .text.head.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 20 Jul 2007 08:40:03 +0000 (17:40 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 20 Jul 2007 08:40:03 +0000 (17:40 +0900)
Follow Al Viro's m68k change from l-k:

i.e. tell modpost that entry point code (that has to be outside
of .init.text for external reasons) is OK to refer to .init.*

Shuts up some section mismatch warnings from modpost.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/head.S
arch/sh/kernel/vmlinux.lds.S

index 71a3ad7d283e2156cbbae33a2338738e2005b090..0bccc0ca5a0f73ff624ed862bc55fbf1764bf80d 100644 (file)
@@ -36,7 +36,8 @@ ENTRY(empty_zero_page)
 1:
        .skip   PAGE_SIZE - empty_zero_page - 1b
 
-       .text   
+       .section        .text.head, "ax"
+
 /*
  * Condition at the entry of _stext:
  *
index 5ba216180b304132f51ccf94a02c02bf5387dbd2..9cb95af7b09013dd25fdfb0da3b1cf6e031bc84a 100644 (file)
@@ -22,6 +22,7 @@ SECTIONS
        *(.empty_zero_page)
        } = 0
   .text : {
+       *(.text.head)
        TEXT_TEXT
        SCHED_TEXT
        LOCK_TEXT