diff options
author | Andi Kleen <ak@linux.intel.com> | 2014-02-08 02:52:04 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-13 21:13:22 -0500 |
commit | 00b7103078596a243c16239004e0dc9416910f13 (patch) | |
tree | 8ced41ed9b1b723ecc79bd50095cc77fafa79354 /kernel/extable.c | |
parent | 22d9fd3411c693ccae5f5c2280fb1f9bb106ad4f (diff) |
asmlinkage: Make main_extable_sort_needed visible
main_extable_sort_needed is used by the build system and needs
to be a normal ELF symbol. Make it visible so that LTO
does not remove or mangle it.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-8-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'kernel/extable.c')
-rw-r--r-- | kernel/extable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/extable.c b/kernel/extable.c index 763faf037ec1..d8a6446adbcb 100644 --- a/kernel/extable.c +++ b/kernel/extable.c | |||
@@ -36,7 +36,7 @@ extern struct exception_table_entry __start___ex_table[]; | |||
36 | extern struct exception_table_entry __stop___ex_table[]; | 36 | extern struct exception_table_entry __stop___ex_table[]; |
37 | 37 | ||
38 | /* Cleared by build time tools if the table is already sorted. */ | 38 | /* Cleared by build time tools if the table is already sorted. */ |
39 | u32 __initdata main_extable_sort_needed = 1; | 39 | u32 __initdata __visible main_extable_sort_needed = 1; |
40 | 40 | ||
41 | /* Sort the kernel's built-in exception table */ | 41 | /* Sort the kernel's built-in exception table */ |
42 | void __init sort_main_extable(void) | 42 | void __init sort_main_extable(void) |