summaryrefslogtreecommitdiffstats
path: root/lib/libc/softfloat/fpgetround.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-07-26 19:07:09 +0000
committerguenther <guenther@openbsd.org>2016-07-26 19:07:09 +0000
commit29cc2a2d1d99869c4cfa9c708e043103e2d7d805 (patch)
tree8255284a5acbf3609dd189801ff182b418d58754 /lib/libc/softfloat/fpgetround.c
parentpool debug dance, part deux (diff)
downloadwireguard-openbsd-29cc2a2d1d99869c4cfa9c708e043103e2d7d805.tar.xz
wireguard-openbsd-29cc2a2d1d99869c4cfa9c708e043103e2d7d805.zip
Wrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh)
go direct instead of through the PLT. ok millert@ kettenis@
Diffstat (limited to 'lib/libc/softfloat/fpgetround.c')
-rw-r--r--lib/libc/softfloat/fpgetround.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/softfloat/fpgetround.c b/lib/libc/softfloat/fpgetround.c
index b180d415bf2..b0042bae105 100644
--- a/lib/libc/softfloat/fpgetround.c
+++ b/lib/libc/softfloat/fpgetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpgetround.c,v 1.6 2016/07/18 19:05:22 guenther Exp $ */
+/* $OpenBSD: fpgetround.c,v 1.7 2016/07/26 19:07:09 guenther Exp $ */
/* $NetBSD: fpgetround.c,v 1.2 2002/01/13 21:45:53 thorpej Exp $ */
/*-
@@ -45,3 +45,4 @@ fpgetround(void)
return float_rounding_mode;
}
+DEF_WEAK(fpgetround);