Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/sparc64 Handle dynamic binaries too.



details:   https://anonhg.NetBSD.org/src/rev/c29b7ecb265c
branches:  trunk
changeset: 494979:c29b7ecb265c
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Jul 18 22:35:45 2000 +0000

description:
Handle dynamic binaries too.

diffstat:

 lib/csu/sparc64/crt0.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f4ad65ac4368 -r c29b7ecb265c lib/csu/sparc64/crt0.c
--- a/lib/csu/sparc64/crt0.c    Tue Jul 18 22:33:55 2000 +0000
+++ b/lib/csu/sparc64/crt0.c    Tue Jul 18 22:35:45 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.12 2000/06/14 17:24:56 cgd Exp $ */
+/* $NetBSD: crt0.c,v 1.13 2000/07/18 22:35:45 eeh Exp $ */
 
 /*
  * Copyright (c) 1995 Christopher G. Demetriou
@@ -60,8 +60,8 @@
        clr     %fp
        add     %sp, 8*16 + 0x7ff, %o0          ! start of stack
        mov     %g1, %o1                        ! Cleanup routine
-       clr     %o1                             ! XXXX
-       clr     %o2                             ! obj
+       mov     %g3, %o1                        ! XXXX our rtld uses %g3
+       mov     %g2, %o2                        ! XXXX obj from rtld.
        ba,pt   %icc, ___start                  ! XXXX jump over the retl egcs 2.96 inserts
        mov     %g1, %o3                        ! ps_strings XXXX
 ");
@@ -113,7 +113,7 @@
  * NOTE: Leave the RCS ID _after_ _start(), in case it gets placed in .text.
  */
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.12 2000/06/14 17:24:56 cgd Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.13 2000/07/18 22:35:45 eeh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 /* XXX XXX XXX THIS SHOULD GO AWAY XXX XXX XXX



Home | Main Index | Thread Index | Old Index