Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/powerpc Make this adhere to the SVR4 ABI.



details:   https://anonhg.NetBSD.org/src/rev/8516b193da1a
branches:  trunk
changeset: 766794:8516b193da1a
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jul 02 07:28:08 2011 +0000

description:
Make this adhere to the SVR4 ABI.

diffstat:

 lib/csu/powerpc/dot_init.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 6068d3a57652 -r 8516b193da1a lib/csu/powerpc/dot_init.h
--- a/lib/csu/powerpc/dot_init.h        Sat Jul 02 03:35:03 2011 +0000
+++ b/lib/csu/powerpc/dot_init.h        Sat Jul 02 07:28:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dot_init.h,v 1.7 2008/05/10 15:31:04 martin Exp $      */
+/*     $NetBSD: dot_init.h,v 1.8 2011/07/02 07:28:08 matt Exp $        */
 
 /*-
  * Copyright (c) 2001 Ross Harvey
@@ -40,18 +40,18 @@
                ".section "#sect",\"ax\",@progbits      \n" \
                ".global "#entry_pt"                    \n" \
                #entry_pt":                             \n" \
+               "       mflr    %r0                     \n" \
+               "       stw     %r0,4(%r1)              \n" \
                "       stwu    %r1,-16(%r1)            \n" \
-               "       mflr    %r0                     \n" \
-               "       stw     %r0,12(%r1)             \n" \
                "       /* fall thru */                 \n" \
                ".previous")
 
 #define MD_SECTION_EPILOGUE(sect)                          \
                __asm (                                     \
                ".section "#sect",\"ax\",@progbits      \n" \
-               "       lwz     %r0,12(%r1)             \n" \
+               "       addi    %r1,%r1,16              \n" \
+               "       lwz     %r0,4(%r1)              \n" \
                "       mtlr    %r0                     \n" \
-               "       la      %r1,16(%r1)             \n" \
                "       blr                             \n" \
                ".previous")
 



Home | Main Index | Thread Index | Old Index