]> git.karo-electronics.de Git - karo-tx-linux.git/commit
c6x: normalize global variables exported by vmlinux.lds
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:51:51 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:44 +0000 (16:37 +1000)
commit292c6f7bfb69728407a6576b4fdcd6b973e7f61b
treeecedd9f9c2c06f11ac0a8ed0acfa1c921c27e86b
parent276b23888999e56f9fbd403f47028cc0fd790764
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>
arch/c6x/kernel/vmlinux.lds.S