From bc8bb57301186279c74b55cd2daec9131d087ef8 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Wed, 29 Nov 2017 05:13:57 +0000 Subject: clang doesn't propagate attributes like "asm labels" and "visibility(hidden)" to builtins like mem{set,cpy,move} and __stack_smash_handler. So, when building with clang, instead mark those as protected visibility to get rid of the PLT relocations. We can't take the address of them then, but that's ok: it's a build-time error not a run-time error. ok kettenis@ --- src/lib/libc/string/memmove.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libc/string/memmove.c') diff --git a/src/lib/libc/string/memmove.c b/src/lib/libc/string/memmove.c index 2f1deb2c70..1cd1086ab9 100644 --- a/src/lib/libc/string/memmove.c +++ b/src/lib/libc/string/memmove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memmove.c,v 1.2 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: memmove.c,v 1.3 2017/11/29 05:13:57 guenther Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -110,4 +110,4 @@ memmove(void *dst0, const void *src0, size_t length) done: return (dst0); } -DEF_STRONG(memmove); +DEF_BUILTIN(memmove); -- cgit v1.2.3-55-g6feb