From: David Howells Date: Thu, 29 Nov 2007 00:22:04 +0000 (-0800) Subject: FRV: fix the extern declaration of kallsyms_num_syms X-Git-Tag: v2.6.24-rc4~30 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9e6c1e633355b69803094ecbac4cecc96e00965c;p=~emulex%2Finfiniband.git FRV: fix the extern declaration of kallsyms_num_syms 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 474219a4192..2fc25810509 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));