Module Name: src
Committed By: matt
Date: Wed Aug 26 14:35:38 UTC 2009
Modified Files:
src/lib/csu/mips [matt-nb5-mips64]: dot_init.h
Log Message:
.cpreturn was doing the wrong thing. Do the restore of GP explicitly
To generate a diff of this commit:
cvs rdiff -u -r1.9.10.2 -r1.9.10.3 src/lib/csu/mips/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/mips/dot_init.h
diff -u src/lib/csu/mips/dot_init.h:1.9.10.2 src/lib/csu/mips/dot_init.h:1.9.10.3
--- src/lib/csu/mips/dot_init.h:1.9.10.2 Tue Aug 18 06:38:17 2009
+++ src/lib/csu/mips/dot_init.h Wed Aug 26 14:35:38 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: dot_init.h,v 1.9.10.2 2009/08/18 06:38:17 matt Exp $ */
+/* $NetBSD: dot_init.h,v 1.9.10.3 2009/08/26 14:35:38 matt Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@@ -59,7 +59,7 @@
#define sREG_L "ld"
#define sREG_S "sd"
#if defined(__mips_n32) || defined(__mips_n64)
-#define MD_GPRESTORE ".cpreturn" "\n\t"
+#define MD_GPRESTORE "ld $gp,8($sp)" "\n\t"
#define sRAOFF "24"
#define sFRAMESZ "32"
#elif defined(__mips_o64)