summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-03-22 07:32:34 +0000
committerguenther <guenther@openbsd.org>2017-03-22 07:32:34 +0000
commitaed3c9fc458115a36245e65aa22ed6a3aedc6be4 (patch)
tree68c6d5e494906a94f898dc2db39ce16999b82e23 /lib/libc
parentUse the hidden aliases to avoid PLT entries for {,_}{set,long}jmp (diff)
downloadwireguard-openbsd-aed3c9fc458115a36245e65aa22ed6a3aedc6be4.tar.xz
wireguard-openbsd-aed3c9fc458115a36245e65aa22ed6a3aedc6be4.zip
Provide the necessary weak alias for fpgetround(). Delete the obsolete
__weak_alias() uses problem noted by drahn@ ok kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/aarch64/gen/fpgetround.c7
-rw-r--r--lib/libc/arch/aarch64/gen/fpsetround.c6
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/arch/aarch64/gen/fpgetround.c b/lib/libc/arch/aarch64/gen/fpgetround.c
index fa7dda454c7..046ebe473ea 100644
--- a/lib/libc/arch/aarch64/gen/fpgetround.c
+++ b/lib/libc/arch/aarch64/gen/fpgetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpgetround.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: fpgetround.c,v 1.2 2017/03/22 07:32:34 guenther Exp $ */
/*
* Copyright (C) 2014 Andrew Turner
* All rights reserved.
@@ -31,10 +31,6 @@
#include <sys/types.h>
#include <ieeefp.h>
-#ifdef __weak_alias
-__weak_alias(_fpgetround,fpgetround);
-#endif
-
fp_rnd
fpgetround(void)
{
@@ -44,3 +40,4 @@ fpgetround(void)
return ((fpscr >> 22) & 3);
}
+DEF_WEAK(fpgetround);
diff --git a/lib/libc/arch/aarch64/gen/fpsetround.c b/lib/libc/arch/aarch64/gen/fpsetround.c
index 05f1c6e7d4e..ff36af0b1e3 100644
--- a/lib/libc/arch/aarch64/gen/fpsetround.c
+++ b/lib/libc/arch/aarch64/gen/fpsetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpsetround.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: fpsetround.c,v 1.2 2017/03/22 07:32:34 guenther Exp $ */
/*
* Copyright (C) 2014 Andrew Turner
* All rights reserved.
@@ -31,10 +31,6 @@
#include <sys/types.h>
#include <ieeefp.h>
-#ifdef __weak_alias
-__weak_alias(_fpsetround,fpsetround);
-#endif
-
fp_rnd
fpsetround(fp_rnd rnd_dir)
{