Module Name:    src
Committed By:   matt
Date:           Sat Jul  2 07:28:08 UTC 2011

Modified Files:
        src/lib/csu/powerpc: dot_init.h

Log Message:
Make this adhere to the SVR4 ABI.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/csu/powerpc/dot_init.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/csu/powerpc/dot_init.h
diff -u src/lib/csu/powerpc/dot_init.h:1.7 src/lib/csu/powerpc/dot_init.h:1.8
--- src/lib/csu/powerpc/dot_init.h:1.7	Sat May 10 15:31:04 2008
+++ src/lib/csu/powerpc/dot_init.h	Sat Jul  2 07:28:08 2011
@@ -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" \
-		"	stwu	%r1,-16(%r1)		\n" \
 		"	mflr	%r0			\n" \
-		"	stw	%r0,12(%r1)		\n" \
+		"	stw	%r0,4(%r1)		\n" \
+		"	stwu	%r1,-16(%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")
 

Reply via email to