From 54ad13d6ee8be7b8cdf348f23638c474ef30ded2 Mon Sep 17 00:00:00 2001 From: David Howells Date: Wed, 28 Nov 2007 16:22:04 -0800 Subject: [PATCH] --- yaml --- r: 74386 b: refs/heads/master c: 9e6c1e633355b69803094ecbac4cecc96e00965c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/kallsyms.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1f8f8c692b91..df0abd48e65b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8853c202b4a91713dbfb4d9b6e1c87cc2aa12392 +refs/heads/master: 9e6c1e633355b69803094ecbac4cecc96e00965c diff --git a/trunk/kernel/kallsyms.c b/trunk/kernel/kallsyms.c index 474219a41929..2fc25810509e 100644 --- a/trunk/kernel/kallsyms.c +++ b/trunk/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));