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));