avr32: 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. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no> Cc: Haavard Skinnemoen <hskinnemoen@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1622d1abdf
commit
2e555f8d0f
2 changed files with 3 additions and 3 deletions
|
@ -555,7 +555,7 @@ void __init setup_arch (char **cmdline_p)
|
||||||
{
|
{
|
||||||
struct clk *cpu_clk;
|
struct clk *cpu_clk;
|
||||||
|
|
||||||
init_mm.start_code = (unsigned long)_text;
|
init_mm.start_code = (unsigned long)_stext;
|
||||||
init_mm.end_code = (unsigned long)_etext;
|
init_mm.end_code = (unsigned long)_etext;
|
||||||
init_mm.end_data = (unsigned long)_edata;
|
init_mm.end_data = (unsigned long)_edata;
|
||||||
init_mm.brk = (unsigned long)_end;
|
init_mm.brk = (unsigned long)_end;
|
||||||
|
|
|
@ -23,7 +23,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = CONFIG_ENTRY_ADDRESS;
|
. = CONFIG_ENTRY_ADDRESS;
|
||||||
.init : AT(ADDR(.init) - LOAD_OFFSET) {
|
.init : AT(ADDR(.init) - LOAD_OFFSET) {
|
||||||
_stext = .;
|
_text = .;
|
||||||
__init_begin = .;
|
__init_begin = .;
|
||||||
_sinittext = .;
|
_sinittext = .;
|
||||||
*(.text.reset)
|
*(.text.reset)
|
||||||
|
@ -46,7 +46,7 @@ SECTIONS
|
||||||
|
|
||||||
.text : AT(ADDR(.text) - LOAD_OFFSET) {
|
.text : AT(ADDR(.text) - LOAD_OFFSET) {
|
||||||
_evba = .;
|
_evba = .;
|
||||||
_text = .;
|
_stext = .;
|
||||||
*(.ex.text)
|
*(.ex.text)
|
||||||
*(.irq.text)
|
*(.irq.text)
|
||||||
KPROBES_TEXT
|
KPROBES_TEXT
|
||||||
|
|
Loading…
Add table
Reference in a new issue