summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/amd64/string/memset.S
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-11-29 05:13:57 +0000
committerguenther <guenther@openbsd.org>2017-11-29 05:13:57 +0000
commitea6088e7d368d53c49ebfdf4520275cec2f78f5b (patch)
treea7a8d82d7543c1ee5938393be3730e485b342723 /lib/libc/arch/amd64/string/memset.S
parentturns out you dont have to configure a vsi as the default in a veb. (diff)
downloadwireguard-openbsd-ea6088e7d368d53c49ebfdf4520275cec2f78f5b.tar.xz
wireguard-openbsd-ea6088e7d368d53c49ebfdf4520275cec2f78f5b.zip
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@
Diffstat (limited to 'lib/libc/arch/amd64/string/memset.S')
-rw-r--r--lib/libc/arch/amd64/string/memset.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/arch/amd64/string/memset.S b/lib/libc/arch/amd64/string/memset.S
index b3f4ffa17bf..2a8645cb1c3 100644
--- a/lib/libc/arch/amd64/string/memset.S
+++ b/lib/libc/arch/amd64/string/memset.S
@@ -53,4 +53,4 @@ L1: rep
movq %r11,%rax
ret
-END_STRONG(memset)
+END_BUILTIN(memset)