summaryrefslogtreecommitdiff
path: root/lib/string.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2014-02-08 08:52:06 +0100
committerH. Peter Anvin <hpa@linux.intel.com>2014-02-13 18:13:43 -0800
commita7330c997d0f74d909a7d3553b1d550d8be2b61a (patch)
treee42c5a279bfae1769748229e65f6290cc291dc89 /lib/string.c
parent3ebae4f3a2e746ae17f25c741e249294e7d6d7c2 (diff)
downloadlwn-a7330c997d0f74d909a7d3553b1d550d8be2b61a.tar.gz
lwn-a7330c997d0f74d909a7d3553b1d550d8be2b61a.zip
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/string.c')
-rw-r--r--lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c
index e5878de4f101..9b1f9062a202 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -648,7 +648,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;