diff options
author | 2017-11-29 05:13:57 +0000 | |
---|---|---|
committer | 2017-11-29 05:13:57 +0000 | |
commit | ea6088e7d368d53c49ebfdf4520275cec2f78f5b (patch) | |
tree | a7a8d82d7543c1ee5938393be3730e485b342723 /lib/libc/arch/i386/stdlib/labs.S | |
parent | turns out you dont have to configure a vsi as the default in a veb. (diff) | |
download | wireguard-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/i386/stdlib/labs.S')
-rw-r--r-- | lib/libc/arch/i386/stdlib/labs.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/arch/i386/stdlib/labs.S b/lib/libc/arch/i386/stdlib/labs.S index 980ecf3426a..d7e592822b4 100644 --- a/lib/libc/arch/i386/stdlib/labs.S +++ b/lib/libc/arch/i386/stdlib/labs.S @@ -30,7 +30,7 @@ * SUCH DAMAGE. */ -#include "SYS.h" +#include "DEFS.h" ENTRY(labs) movl 4(%esp),%eax |