diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-06-20 15:52:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-20 17:39:35 -0400 |
commit | 5e7b6ed8e9bf3c8e3bb579fd0aec64f6526f8c81 (patch) | |
tree | 689926de5ab257b5cd55915e2e3d1128f8537709 /arch | |
parent | 3a981f482cc29f7d0aeab509e51ea15519a6e961 (diff) |
xtensa: replace xtensa-specific _f{data,text} by _s{data,text}
commit a2d063ac216c161 ("extable, core_kernel_data(): Make sure all archs
define _sdata") missed xtensa. Xtensa does have a start of data marker,
but calls it _fdata, causing
kernel/built-in.o:(.text+0x964): undefined reference to `_sdata'
_stext was already defined, but it was duplicated by _fdata.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/kernel/vmlinux.lds.S | 3 | ||||
-rw-r--r-- | arch/xtensa/mm/init.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index 88ecea3facb..ee2e2089483 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S | |||
@@ -83,7 +83,6 @@ SECTIONS | |||
83 | 83 | ||
84 | _text = .; | 84 | _text = .; |
85 | _stext = .; | 85 | _stext = .; |
86 | _ftext = .; | ||
87 | 86 | ||
88 | .text : | 87 | .text : |
89 | { | 88 | { |
@@ -112,7 +111,7 @@ SECTIONS | |||
112 | EXCEPTION_TABLE(16) | 111 | EXCEPTION_TABLE(16) |
113 | /* Data section */ | 112 | /* Data section */ |
114 | 113 | ||
115 | _fdata = .; | 114 | _sdata = .; |
116 | RW_DATA_SECTION(XCHAL_ICACHE_LINESIZE, PAGE_SIZE, THREAD_SIZE) | 115 | RW_DATA_SECTION(XCHAL_ICACHE_LINESIZE, PAGE_SIZE, THREAD_SIZE) |
117 | _edata = .; | 116 | _edata = .; |
118 | 117 | ||
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index ba150e5de2e..c82af58f60b 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | /* References to section boundaries */ | 30 | /* References to section boundaries */ |
31 | 31 | ||
32 | extern char _ftext, _etext, _fdata, _edata, _rodata_end; | 32 | extern char _stext, _etext, _sdata, _edata, _rodata_end; |
33 | extern char __init_begin, __init_end; | 33 | extern char __init_begin, __init_end; |
34 | 34 | ||
35 | /* | 35 | /* |
@@ -197,8 +197,8 @@ void __init mem_init(void) | |||
197 | reservedpages++; | 197 | reservedpages++; |
198 | } | 198 | } |
199 | 199 | ||
200 | codesize = (unsigned long) &_etext - (unsigned long) &_ftext; | 200 | codesize = (unsigned long) &_etext - (unsigned long) &_stext; |
201 | datasize = (unsigned long) &_edata - (unsigned long) &_fdata; | 201 | datasize = (unsigned long) &_edata - (unsigned long) &_sdata; |
202 | initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; | 202 | initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; |
203 | 203 | ||
204 | printk("Memory: %luk/%luk available (%ldk kernel code, %ldk reserved, " | 204 | printk("Memory: %luk/%luk available (%ldk kernel code, %ldk reserved, " |