summaryrefslogtreecommitdiffstats
path: root/arch/c6x/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-04 00:03:35 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 01:07:34 +0200
commit06256f8f719917581a221221bb851fcf88de564b (patch)
treeb2a8753786b1d19993df813a933069c1dc18cb09 /arch/c6x/kernel/vmlinux.lds.S
parentavr32: normalize global variables exported by vmlinux.lds (diff)
downloadlinux-06256f8f719917581a221221bb851fcf88de564b.tar.xz
linux-06256f8f719917581a221221bb851fcf88de564b.zip
c6x: normalize global variables exported by vmlinux.lds
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. This patch also fixes possible bugs due to current address layout that [__init_begin, __init_end] is a sub-range of [_stext, _etext] and pages within range [__init_begin, __init_end] will be freed by free_initmem(). Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Mark Salter <msalter@redhat.com> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/c6x/kernel/vmlinux.lds.S')
-rw-r--r--arch/c6x/kernel/vmlinux.lds.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/c6x/kernel/vmlinux.lds.S b/arch/c6x/kernel/vmlinux.lds.S
index 1d81c4c129ec..279d80725128 100644
--- a/arch/c6x/kernel/vmlinux.lds.S
+++ b/arch/c6x/kernel/vmlinux.lds.S
@@ -54,16 +54,15 @@ SECTIONS
}
. = ALIGN(PAGE_SIZE);
+ __init_begin = .;
.init :
{
- _stext = .;
_sinittext = .;
HEAD_TEXT
INIT_TEXT
_einittext = .;
}
- __init_begin = _stext;
INIT_DATA_SECTION(16)
PERCPU_SECTION(128)
@@ -74,6 +73,7 @@ SECTIONS
.text :
{
_text = .;
+ _stext = .;
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT