Module Name:    src
Committed By:   matt
Date:           Sat Mar 12 07:56:36 UTC 2011

Modified Files:
        src/lib/csu/powerpc: crt0.c

Log Message:
Don't initialize %r2 for SDA2_BASE anymore.  It's needed for TLS.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/csu/powerpc/crt0.c

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/crt0.c
diff -u src/lib/csu/powerpc/crt0.c:1.29 src/lib/csu/powerpc/crt0.c:1.30
--- src/lib/csu/powerpc/crt0.c:1.29	Mon Mar  7 05:09:10 2011
+++ src/lib/csu/powerpc/crt0.c	Sat Mar 12 07:56:36 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.29 2011/03/07 05:09:10 joerg Exp $ */
+/* $NetBSD: crt0.c,v 1.30 2011/03/12 07:56:36 matt Exp $ */
 
 /*
  * Copyright (c) 1997 Jason R. Thorpe.
@@ -62,7 +62,6 @@
 	/*
 	 * Initialize the Small Data Area registers.
 	 * _SDA_BASE is defined in the SVR4 ABI for PPC.
-	 * _SDA2_BASE is defined in the E[mbedded] ABI for PPC.
 	 *
 	 * Do the initialization in a PIC manner.
 	 */
@@ -71,8 +70,6 @@
 		"1: mflr 11;"
 		"addis 13,11,rtld_SDA_BASE_-1b@ha;"
 		"addi 13,13,rtld_SDA_BASE_-1b@l;"
-		"addis 2,11,rtld_SDA2_BASE_-1b@ha;"
-		"addi 2,2,rtld_SDA2_BASE_-1b@l"
 	    ::: "lr" );
 
 	if ((namep = argv[0]) != NULL) {	/* NULL ptr if argc = 0 */
@@ -109,7 +106,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.29 2011/03/07 05:09:10 joerg Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.30 2011/03/12 07:56:36 matt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "common.c"

Reply via email to