summaryrefslogtreecommitdiffstats
path: root/kernel/extable.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-05-20 01:22:14 +0200
committerIngo Molnar <mingo@elte.hu>2011-05-20 01:27:16 +0200
commitc5fc472171ec4f96d06d1ac039d88f9b89bb95db (patch)
treeb83af634894e5f70f042a67ebfee876e4b16183f /kernel/extable.c
parent29510ec3b626c86de9707bb8904ff940d430289b (diff)
downloadlinux-c5fc472171ec4f96d06d1ac039d88f9b89bb95db.tar.gz
linux-c5fc472171ec4f96d06d1ac039d88f9b89bb95db.tar.bz2
linux-c5fc472171ec4f96d06d1ac039d88f9b89bb95db.zip
core_kernel_data(): Fix architectures that do not define _sdata
Some architectures such as Alpha do not define _sdata but _data: kernel/built-in.o: In function `core_kernel_data': kernel/extable.c:77: undefined reference to `_sdata' So expand the scope of the data range to the text addresses too, this might be more correct anyway because this way we can cover readonly variables as well. Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/n/tip-i878c8a0e0g0ep4v7i6vxnhz@git.kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/extable.c')
-rw-r--r--kernel/extable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/extable.c b/kernel/extable.c
index c2d625fcda77..d44aac0c3faa 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -74,7 +74,7 @@ int core_kernel_text(unsigned long addr)
int core_kernel_data(unsigned long addr)
{
- if (addr >= (unsigned long)_sdata &&
+ if (addr >= (unsigned long)_stext &&
addr < (unsigned long)_edata)
return 1;
return 0;