summaryrefslogtreecommitdiff
path: root/lib/libc/arch/sparc64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-13 08:31:49 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-13 08:31:49 +0000
commit219271e05791f714c6773e2c340b9b4edd65ecb5 (patch)
tree29048a1ccab17cccae97e6c48797ebf9cd39b82b /lib/libc/arch/sparc64
parent2223ad9f29c5814db092acde717ec2b6862fce5f (diff)
Wrap <stdlib.h> so that calls go direct and the symbols not in the
C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
Diffstat (limited to 'lib/libc/arch/sparc64')
-rw-r--r--lib/libc/arch/sparc64/Symbols.list2
-rw-r--r--lib/libc/arch/sparc64/gdtoa/strtold.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/arch/sparc64/Symbols.list b/lib/libc/arch/sparc64/Symbols.list
index 750c688f4df..c34776bbc62 100644
--- a/lib/libc/arch/sparc64/Symbols.list
+++ b/lib/libc/arch/sparc64/Symbols.list
@@ -49,7 +49,6 @@ _Qp_sub
_Qp_uitoq
_Qp_uxtoq
_Qp_xtoq
-__ULtoQ_D2A
__builtin_saveregs
__dtoul
__fpu_add
@@ -81,5 +80,4 @@ __fpu_xtof
__ftoul
__plt_end
__plt_start
-__strtorQ
_mcount
diff --git a/lib/libc/arch/sparc64/gdtoa/strtold.c b/lib/libc/arch/sparc64/gdtoa/strtold.c
index ecbfd5507fa..9c25cb2f09f 100644
--- a/lib/libc/arch/sparc64/gdtoa/strtold.c
+++ b/lib/libc/arch/sparc64/gdtoa/strtold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtold.c,v 1.1 2008/09/07 20:36:08 martynas Exp $ */
+/* $OpenBSD: strtold.c,v 1.2 2015/09/13 08:31:47 guenther Exp $ */
/*-
* Copyright (c) 2003 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -43,3 +43,4 @@ strtold(const char * __restrict s, char ** __restrict sp)
strtorQ(s, sp, FLT_ROUNDS, &result);
return result;
}
+DEF_STRONG(strtold);