diff options
author | 2018-01-18 08:23:44 +0000 | |
---|---|---|
committer | 2018-01-18 08:23:44 +0000 | |
commit | ae3cb403620ab940fbaabb3055fac045a63d56b7 (patch) | |
tree | c9675235761df3e321bc80b853144e5c9788dfbc /lib/libc/arch/mips64/string | |
parent | Unlike other archs, mips64 needs ld.so to know about symbol visibility and (diff) | |
download | wireguard-openbsd-ae3cb403620ab940fbaabb3055fac045a63d56b7.tar.xz wireguard-openbsd-ae3cb403620ab940fbaabb3055fac045a63d56b7.zip |
Instead of trying to handle ffs() with the normal rename-mark-hidden-and-alias
dance, mark it protected. This works better for both gcc and clang: gcc
blocks overriding of internal calls, while clang permits inlining again.
ok otto@
Diffstat (limited to 'lib/libc/arch/mips64/string')
-rw-r--r-- | lib/libc/arch/mips64/string/ffs.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/mips64/string/ffs.S b/lib/libc/arch/mips64/string/ffs.S index f09de46a930..f96d9eaadaa 100644 --- a/lib/libc/arch/mips64/string/ffs.S +++ b/lib/libc/arch/mips64/string/ffs.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs.S,v 1.4 2015/08/31 02:53:56 guenther Exp $ */ +/* $OpenBSD: ffs.S,v 1.5 2018/01/18 08:23:44 guenther Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -46,4 +46,5 @@ LEAF(ffs, 0) beq v1, zero, 1b # no, continue done: j ra -END_WEAK(ffs) +END(ffs) +.protected ffs |