Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/vax Fix some ELF/a.out lossage



details:   https://anonhg.NetBSD.org/src/rev/b31a65b6281a
branches:  trunk
changeset: 495819:b31a65b6281a
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Aug 07 03:18:04 2000 +0000

description:
Fix some ELF/a.out lossage

diffstat:

 lib/libc/arch/vax/gen/udiv.S   |  10 +++++++++-
 lib/libc/arch/vax/gen/urem.S   |  10 +++++++++-
 lib/libc/arch/vax/sys/cerror.S |   6 ++----
 3 files changed, 20 insertions(+), 6 deletions(-)

diffs (93 lines):

diff -r 4a7c19b09d81 -r b31a65b6281a lib/libc/arch/vax/gen/udiv.S
--- a/lib/libc/arch/vax/gen/udiv.S      Mon Aug 07 03:07:24 2000 +0000
+++ b/lib/libc/arch/vax/gen/udiv.S      Mon Aug 07 03:18:04 2000 +0000
@@ -36,7 +36,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)udiv.s   8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: udiv.S,v 1.1 1995/04/17 12:23:47 ragge Exp $"
+       .asciz "$NetBSD: udiv.S,v 1.2 2000/08/07 03:18:04 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -50,7 +50,11 @@
 #define        DIVIDEND        4(ap)
 #define        DIVISOR         8(ap)
 
+#ifdef __ELF__
+ASENTRY(__udiv,0)
+#else
 ASENTRY(udiv,0)
+#endif
        movl    DIVISOR,r2
        jlss    Leasy           # big divisor: settle by comparison
        movl    DIVIDEND,r0
@@ -70,7 +74,11 @@
        movl    $1,r0
        ret
 
+#ifdef __ELF__
+ASENTRY(__audiv,0)
+#else
 ASENTRY(audiv,0)
+#endif
        movl    DIVIDEND,r3
        movl    DIVISOR,r2
        jlss    La_easy         # big divisor: settle by comparison
diff -r 4a7c19b09d81 -r b31a65b6281a lib/libc/arch/vax/gen/urem.S
--- a/lib/libc/arch/vax/gen/urem.S      Mon Aug 07 03:07:24 2000 +0000
+++ b/lib/libc/arch/vax/gen/urem.S      Mon Aug 07 03:18:04 2000 +0000
@@ -36,7 +36,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)urem.s   8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: urem.S,v 1.1 1995/04/17 12:23:48 ragge Exp $"
+       .asciz "$NetBSD: urem.S,v 1.2 2000/08/07 03:18:04 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 #include "DEFS.h"
@@ -50,7 +50,11 @@
 #define        DIVIDEND        4(ap)
 #define        DIVISOR         8(ap)
 
+#ifdef __ELF__
+ASENTRY(__urem,0)
+#else
 ASENTRY(urem,0)
+#endif
        movl    DIVISOR,r2
        jlss    Leasy           # big divisor: settle by comparison
        movl    DIVIDEND,r0
@@ -70,7 +74,11 @@
 Ldifference:
        ret
 
+#ifdef __ELF__
+ASENTRY(__aurem,0)
+#else
 ASENTRY(aurem,0)
+#endif
        movl    DIVIDEND,r3
        movl    DIVISOR,r2
        jlss    La_easy         # big divisor: settle by comparison
diff -r 4a7c19b09d81 -r b31a65b6281a lib/libc/arch/vax/sys/cerror.S
--- a/lib/libc/arch/vax/sys/cerror.S    Mon Aug 07 03:07:24 2000 +0000
+++ b/lib/libc/arch/vax/sys/cerror.S    Mon Aug 07 03:18:04 2000 +0000
@@ -33,15 +33,13 @@
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)cerror.s 8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: cerror.S,v 1.5 2000/06/28 19:20:18 matt Exp $"
+       .asciz "$NetBSD: cerror.S,v 1.6 2000/08/07 03:18:05 matt Exp $"
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
 
        .globl  _C_LABEL(errno)
-CERROR:
-       nop
-       nop
+CERROR: .word 0
 #ifdef _REENTRANT
        pushl   r0
        calls   $0,_C_LABEL(__errno)



Home | Main Index | Thread Index | Old Index