diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-07-03 18:03:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:34 -0400 |
commit | 40a3b8df7be3b813cef7e32f74dea398274c2d47 (patch) | |
tree | cf8cf4810285267f3b43ffa32c166b49b355da0b /arch/tile/kernel/vmlinux.lds.S | |
parent | ae49b83dcacfb69e22092cab688c415c2f2d870c (diff) |
tile: normalize global variables exported by vmlinux.lds
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __init_begin and __init_end.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/tile/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/tile/kernel/vmlinux.lds.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/tile/kernel/vmlinux.lds.S b/arch/tile/kernel/vmlinux.lds.S index 631f10de12fe..a13ed902afbb 100644 --- a/arch/tile/kernel/vmlinux.lds.S +++ b/arch/tile/kernel/vmlinux.lds.S | |||
@@ -27,7 +27,6 @@ SECTIONS | |||
27 | .intrpt1 (LOAD_OFFSET) : AT ( 0 ) /* put at the start of physical memory */ | 27 | .intrpt1 (LOAD_OFFSET) : AT ( 0 ) /* put at the start of physical memory */ |
28 | { | 28 | { |
29 | _text = .; | 29 | _text = .; |
30 | _stext = .; | ||
31 | *(.intrpt1) | 30 | *(.intrpt1) |
32 | } :intrpt1 =0 | 31 | } :intrpt1 =0 |
33 | 32 | ||
@@ -36,6 +35,7 @@ SECTIONS | |||
36 | 35 | ||
37 | /* Now the real code */ | 36 | /* Now the real code */ |
38 | . = ALIGN(0x20000); | 37 | . = ALIGN(0x20000); |
38 | _stext = .; | ||
39 | .text : AT (ADDR(.text) - LOAD_OFFSET) { | 39 | .text : AT (ADDR(.text) - LOAD_OFFSET) { |
40 | HEAD_TEXT | 40 | HEAD_TEXT |
41 | SCHED_TEXT | 41 | SCHED_TEXT |
@@ -58,11 +58,13 @@ SECTIONS | |||
58 | #define LOAD_OFFSET PAGE_OFFSET | 58 | #define LOAD_OFFSET PAGE_OFFSET |
59 | 59 | ||
60 | . = ALIGN(PAGE_SIZE); | 60 | . = ALIGN(PAGE_SIZE); |
61 | __init_begin = .; | ||
61 | VMLINUX_SYMBOL(_sinitdata) = .; | 62 | VMLINUX_SYMBOL(_sinitdata) = .; |
62 | INIT_DATA_SECTION(16) :data =0 | 63 | INIT_DATA_SECTION(16) :data =0 |
63 | PERCPU_SECTION(L2_CACHE_BYTES) | 64 | PERCPU_SECTION(L2_CACHE_BYTES) |
64 | . = ALIGN(PAGE_SIZE); | 65 | . = ALIGN(PAGE_SIZE); |
65 | VMLINUX_SYMBOL(_einitdata) = .; | 66 | VMLINUX_SYMBOL(_einitdata) = .; |
67 | __init_end = .; | ||
66 | 68 | ||
67 | _sdata = .; /* Start of data section */ | 69 | _sdata = .; /* Start of data section */ |
68 | 70 | ||