]> git.karo-electronics.de Git - karo-tx-linux.git/commit
c6x: normalize global variables exported by vmlinux.lds
authorJiang Liu <liuj97@gmail.com>
Fri, 7 Jun 2013 00:08:03 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:20 +0000 (15:42 +1000)
commitd7eec57a36ad0fa171c4dd2b2d50d0a87e564f95
tree000b8776fdc6483b472814587263903981643025
parentdf4cd17e14385574ecf7b24ffd7f3d42d095595e
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