summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/m88k/SYS.h8
-rw-r--r--lib/libc/arch/m88k/sys/cerror.S4
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/arch/m88k/SYS.h b/lib/libc/arch/m88k/SYS.h
index 636b5e7ea82..feb08d91253 100644
--- a/lib/libc/arch/m88k/SYS.h
+++ b/lib/libc/arch/m88k/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.24 2016/09/22 18:19:59 guenther Exp $*/
+/* $OpenBSD: SYS.h,v 1.25 2018/06/16 16:06:03 guenther Exp $*/
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -73,8 +73,10 @@
ld %r11, %r25, __CONCAT(sym,#got_rel); \
st reg, %r11, %r0
#endif
-#endif
+#define CERROR __cerror#plt
+#else /* __PIC__ */
#define CERROR __cerror
+#endif /* __PIC__ */
#define __DO_SYSCALL(x) \
or %r13, %r0, __SYSCALLNAME(SYS_,x); \
@@ -127,5 +129,3 @@
#define SYSCALL_END(x) SYSCALL_END_HIDDEN(x); END(x)
#define ASMSTR .asciz
-
- .globl __cerror
diff --git a/lib/libc/arch/m88k/sys/cerror.S b/lib/libc/arch/m88k/sys/cerror.S
index 20b2d43581a..7297885dc0e 100644
--- a/lib/libc/arch/m88k/sys/cerror.S
+++ b/lib/libc/arch/m88k/sys/cerror.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cerror.S,v 1.14 2016/09/22 18:19:59 guenther Exp $ */
+/* $OpenBSD: cerror.S,v 1.15 2018/06/16 16:06:03 guenther Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -51,6 +51,8 @@ ASENTRY(__cerror)
or %r2, %r0, %r3
END(__cerror)
+ .hidden __cerror
+
#if 0
/* ahh, if only */
ASENTRY(__errno)