summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-09-13 14:23:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-09-13 14:23:44 +0000
commit45ede08d2e266d6f1898ba5a404a429d62a4472b (patch)
treeb4c433b1d895334213dc674c3dbefc106166d3c8 /lib/libc
parent8c534526dcb65eb2ebbc529149ea71f430775289 (diff)
Make softfloat's internal float_raise also available under a hidden, internal
name, so that local references to it do not need to go through the plt. (this routine is used by libm and thus can't be made internal to libc) help and ok guenther@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/hidden/softfloat.h11
-rw-r--r--lib/libc/softfloat/softfloat-specialize.h3
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/libc/hidden/softfloat.h b/lib/libc/hidden/softfloat.h
new file mode 100644
index 00000000000..31d96f84b26
--- /dev/null
+++ b/lib/libc/hidden/softfloat.h
@@ -0,0 +1,11 @@
+/* $OpenBSD: softfloat.h,v 1.1 2015/09/13 14:23:43 miod Exp $ */
+/* public domain */
+
+#ifndef _LIBC_SOFTFLOAT_H_
+#define _LIBC_SOFTFLOAT_H_
+
+#include_next <softfloat.h>
+
+PROTO_NORMAL(float_raise);
+
+#endif
diff --git a/lib/libc/softfloat/softfloat-specialize.h b/lib/libc/softfloat/softfloat-specialize.h
index b2c29b297de..b031bad3e63 100644
--- a/lib/libc/softfloat/softfloat-specialize.h
+++ b/lib/libc/softfloat/softfloat-specialize.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softfloat-specialize.h,v 1.1 2006/11/06 15:11:37 drahn Exp $ */
+/* $OpenBSD: softfloat-specialize.h,v 1.2 2015/09/13 14:23:43 miod Exp $ */
/* $NetBSD: softfloat-specialize,v 1.3 2002/05/12 13:12:45 bjh21 Exp $ */
/* This is a derivative work. */
@@ -64,6 +64,7 @@ void float_raise( fp_except flags )
raise( SIGFPE );
}
}
+DEF_STRONG(float_raise);
/*
-------------------------------------------------------------------------------