aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2014-02-08 08:52:06 +0100
committerMoyster <oysterized@gmail.com>2018-11-29 16:02:36 +0100
commitcb7c3b6b40f1554990fde14c771248653c48400e (patch)
treee25ebd6142004dff3304d28288a8bf1a003a32c9 /lib
parente8095960d4e1c345eb58e9d488d3f329056fe4a0 (diff)
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: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1391845930-28580-10-git-send-email-ak@linux.intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c
index 92b381ba2..5508ba5af 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -677,7 +677,7 @@ EXPORT_SYMBOL(memmove);
* @count: The size of the area.
*/
#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;
int res = 0;