Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/arch/powerpc The kernel and ld.elf_so call with a di...



details:   https://anonhg.NetBSD.org/src/rev/ef2cf954e65e
branches:  trunk
changeset: 766823:ef2cf954e65e
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jul 02 20:16:09 2011 +0000

description:
The kernel and ld.elf_so call with a different order for
cleanup, obj, ps_strings so deal with it.
With this change, USE_COMPILERCRTSTUFF=no works.

diffstat:

 lib/csu/arch/powerpc/crt0.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 0eabc5a5248e -r ef2cf954e65e lib/csu/arch/powerpc/crt0.S
--- a/lib/csu/arch/powerpc/crt0.S       Sat Jul 02 20:14:10 2011 +0000
+++ b/lib/csu/arch/powerpc/crt0.S       Sat Jul 02 20:16:09 2011 +0000
@@ -29,7 +29,7 @@
 
 #include <powerpc/asm.h>
 
-RCSID("$NetBSD: crt0.S,v 1.3 2011/07/01 02:59:05 joerg Exp $")
+RCSID("$NetBSD: crt0.S,v 1.4 2011/07/02 20:16:09 matt Exp $")
 
 STRONG_ALIAS(_start,__start)
 
@@ -45,9 +45,9 @@
        addis   %r13,%r11,_SDA_BASE_-1b@ha
        addi    %r13,%r13,_SDA_BASE_-1b@l
 
-       mr      %r3,%r6
-       mr      %r4,%r7
-       mr      %r5,%r8
+       mr      %r3,%r7         /* cleanup */
+       mr      %r4,%r6         /* obj */
+       mr      %r5,%r8         /* ps_strings */
 
        b       ___start
 END(__start)



Home | Main Index | Thread Index | Old Index