diff options
-rw-r--r-- | kernel/kallsyms.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 474219a41929..2fc25810509e 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c | |||
@@ -32,9 +32,14 @@ | |||
32 | 32 | ||
33 | /* These will be re-linked against their real values during the second link stage */ | 33 | /* These will be re-linked against their real values during the second link stage */ |
34 | extern const unsigned long kallsyms_addresses[] __attribute__((weak)); | 34 | extern const unsigned long kallsyms_addresses[] __attribute__((weak)); |
35 | extern const unsigned long kallsyms_num_syms __attribute__((weak)); | ||
36 | extern const u8 kallsyms_names[] __attribute__((weak)); | 35 | extern const u8 kallsyms_names[] __attribute__((weak)); |
37 | 36 | ||
37 | /* tell the compiler that the count isn't in the small data section if the arch | ||
38 | * has one (eg: FRV) | ||
39 | */ | ||
40 | extern const unsigned long kallsyms_num_syms | ||
41 | __attribute__((weak, section(".rodata"))); | ||
42 | |||
38 | extern const u8 kallsyms_token_table[] __attribute__((weak)); | 43 | extern const u8 kallsyms_token_table[] __attribute__((weak)); |
39 | extern const u16 kallsyms_token_index[] __attribute__((weak)); | 44 | extern const u16 kallsyms_token_index[] __attribute__((weak)); |
40 | 45 | ||