public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] FRV: Fix the extern declaration of kallsyms_num_syms [try #2]
@ 2007-11-13 16:53 David Howells
  2007-11-15 22:40 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: David Howells @ 2007-11-13 16:53 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel, dhowells

From: David Howells <dhowells@redhat.com>

Fix the extern declaration of kallsyms_num_syms to indicate that the symbol
does not reside in the small-data storage space, and so may not be accessed
relative to the small data base register.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 kernel/kallsyms.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 474219a..2fc2581 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -32,9 +32,14 @@
 
 /* These will be re-linked against their real values during the second link stage */
 extern const unsigned long kallsyms_addresses[] __attribute__((weak));
-extern const unsigned long kallsyms_num_syms __attribute__((weak));
 extern const u8 kallsyms_names[] __attribute__((weak));
 
+/* tell the compiler that the count isn't in the small data section if the arch
+ * has one (eg: FRV)
+ */
+extern const unsigned long kallsyms_num_syms
+__attribute__((weak, section(".rodata")));
+
 extern const u8 kallsyms_token_table[] __attribute__((weak));
 extern const u16 kallsyms_token_index[] __attribute__((weak));
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-15 22:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 16:53 [PATCH] FRV: Fix the extern declaration of kallsyms_num_syms [try #2] David Howells
2007-11-15 22:40 ` Andrew Morton
2007-11-15 22:44   ` Andrew Morton
2007-11-15 22:55   ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox