summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-08-11 12:21:34 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-08-11 12:21:34 +0000
commitf8a1095de9294f3a20867d0c3f392b876d818859 (patch)
treeb0afafcea4f5d94b0d6e11035d05fd9ad2ee1a0d /sys/lib
parentf6ce27ca5505ec662fe46750749d30187b8c8092 (diff)
Use _C_LABEL for c symbols.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libkern/arch/sparc/Makefile.inc10
-rw-r--r--sys/lib/libkern/arch/sparc/divrem.m45
2 files changed, 8 insertions, 7 deletions
diff --git a/sys/lib/libkern/arch/sparc/Makefile.inc b/sys/lib/libkern/arch/sparc/Makefile.inc
index 5394131cefb..2560b9391b9 100644
--- a/sys/lib/libkern/arch/sparc/Makefile.inc
+++ b/sys/lib/libkern/arch/sparc/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.9 2000/12/18 18:40:47 provos Exp $
+# $OpenBSD: Makefile.inc,v 1.10 2002/08/11 12:21:33 art Exp $
# $NetBSD: Makefile.inc,v 1.12 1996/04/23 23:05:22 christos Exp $
SRCS+= __main.c imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \
@@ -18,25 +18,25 @@ CLEANFILES+=rem.S sdiv.S udiv.S urem.S
sdiv.S: divrem.m4
echo 'building ${.TARGET} from ${.ALLSRC}'
- (echo "define(NAME,\`.div')define(NAME2,\`__div')define(OP,\`div')define(S,\`true')"; \
+ (echo "define(NAME,\`.div')define(NAME2,\`_C_LABEL(_div)')define(OP,\`div')define(S,\`true')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
chmod 444 ${.TARGET}
udiv.S: divrem.m4
@echo 'building ${.TARGET} from ${.ALLSRC}'
- @(echo "define(NAME,\`.udiv')define(NAME2,\`__udiv')define(OP,\`div')define(S,\`false')"; \
+ @(echo "define(NAME,\`.udiv')define(NAME2,\`_C_LABEL(_udiv)')define(OP,\`div')define(S,\`false')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
@chmod 444 ${.TARGET}
rem.S: divrem.m4
echo 'building ${.TARGET} from ${.ALLSRC}'
- (echo "define(NAME,\`.rem')define(NAME2,\`__rem')define(OP,\`rem')define(S,\`true')"; \
+ (echo "define(NAME,\`.rem')define(NAME2,\`_C_LABEL(_rem)')define(OP,\`rem')define(S,\`true')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
chmod 444 ${.TARGET}
urem.S: divrem.m4
@echo 'building ${.TARGET} from ${.ALLSRC}'
- @(echo "define(NAME,\`.urem')define(NAME2,\`__urem')define(OP,\`rem')define(S,\`false')"; \
+ @(echo "define(NAME,\`.urem')define(NAME2,\`_C_LABEL(_urem)')define(OP,\`rem')define(S,\`false')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
@chmod 444 ${.TARGET}
diff --git a/sys/lib/libkern/arch/sparc/divrem.m4 b/sys/lib/libkern/arch/sparc/divrem.m4
index 9f3199dd0b4..8f6480a63a7 100644
--- a/sys/lib/libkern/arch/sparc/divrem.m4
+++ b/sys/lib/libkern/arch/sparc/divrem.m4
@@ -1,4 +1,4 @@
-/* $OpenBSD: divrem.m4,v 1.4 2000/03/03 11:17:03 art Exp $ */
+/* $OpenBSD: divrem.m4,v 1.5 2002/08/11 12:21:33 art Exp $ */
/* $NetBSD: divrem.m4,v 1.3 1995/04/22 09:37:39 pk Exp $ */
/*
@@ -49,7 +49,7 @@
#ifdef notdef
.asciz "@(#)divrem.m4 8.1 (Berkeley) 6/4/93"
#endif
- .asciz "$OpenBSD: divrem.m4,v 1.4 2000/03/03 11:17:03 art Exp $"
+ .asciz "$OpenBSD: divrem.m4,v 1.5 2002/08/11 12:21:33 art Exp $"
#endif /* LIBC_SCCS and not lint */
/*
@@ -136,6 +136,7 @@ L.$1.eval(TWOSUPN+$2):
#include "DEFS.h"
#include <machine/trap.h>
+#include <machine/asm.h>
.globl NAME2
NAME2: