Skip to content
Snippets Groups Projects
Commit a7330c99 authored by Andi Kleen's avatar Andi Kleen Committed by H. Peter Anvin
Browse files

asmlinkage Make __stack_chk_failed and memcmp visible


In LTO symbols implicitely referenced by the compiler need
to be visible. Earlier these symbols were visible implicitely
from being exported, but we disabled implicit visibility fo
 EXPORTs when modules are disabled to improve code size. So
now these symbols have to be marked visible explicitely.

Do this for __stack_chk_fail (with stack protector)
and memcmp.

Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-10-git-send-email-ak@linux.intel.com


Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 3ebae4f3
No related branches found
No related tags found
No related merge requests found
...@@ -459,7 +459,7 @@ EXPORT_SYMBOL(warn_slowpath_null); ...@@ -459,7 +459,7 @@ EXPORT_SYMBOL(warn_slowpath_null);
* Called when gcc's -fstack-protector feature is used, and * Called when gcc's -fstack-protector feature is used, and
* gcc detects corruption of the on-stack canary value * gcc detects corruption of the on-stack canary value
*/ */
void __stack_chk_fail(void) __visible void __stack_chk_fail(void)
{ {
panic("stack-protector: Kernel stack is corrupted in: %p\n", panic("stack-protector: Kernel stack is corrupted in: %p\n",
__builtin_return_address(0)); __builtin_return_address(0));
......
...@@ -648,7 +648,7 @@ EXPORT_SYMBOL(memmove); ...@@ -648,7 +648,7 @@ EXPORT_SYMBOL(memmove);
* @count: The size of the area. * @count: The size of the area.
*/ */
#undef memcmp #undef memcmp
int memcmp(const void *cs, const void *ct, size_t count) __visible int memcmp(const void *cs, const void *ct, size_t count)
{ {
const unsigned char *su1, *su2; const unsigned char *su1, *su2;
int res = 0; int res = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment