[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc

jocke at uclibc.org jocke at uclibc.org
Sat Jun 25 22:33:25 UTC 2005


Author: jocke
Date: 2005-06-25 16:33:25 -0600 (Sat, 25 Jun 2005)
New Revision: 10599

Log:
Change L_Scrt1 to __PIC__


Modified:
   trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2005-06-25 22:27:41 UTC (rev 10598)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2005-06-25 22:33:25 UTC (rev 10599)
@@ -43,7 +43,7 @@
 	mr	r10,r1 	/* Save the stack pointer */
 	clrrwi	r1,r1,4	/* Align stack ptr to 16 bytes */
 	mr	r9,r1 	/* Pass aligned stack ptr */
-#if defined L_Scrt1
+#ifdef __PIC__
 	bl	_GLOBAL_OFFSET_TABLE_-4 at local
 	mflr	r31
 #endif
@@ -58,12 +58,12 @@
 	addi	r5,r10,4
 	mr	r8,r7 /* Pass _dl_fini from ldso or NULL if statically linked */
 	/* Ok, now run uClibc's main() -- shouldn't return */
-# ifdef L_Scrt1
+#ifdef __PIC__
 	lwz	r6,_init at got(r31)
 	lwz	r7,_fini at got(r31)
 	lwz	r3,main at got(r31)
 	b	__uClibc_main at plt
-# else
+#else
 	lis     r6,_init at ha	# load top 16 bits
 	addi    r6,r6,_init at l	# load bottom 16 bits
 	lis     r7,_fini at ha	# load top 16 bits
@@ -71,7 +71,7 @@
 	lis     r3,main at ha	# load top 16 bits
 	addi    r3,r3,main at l	# load bottom 16 bits
 	b	__uClibc_main
-# endif
+#endif
 
 .size _start,.-_start
 




More information about the uClibc-cvs mailing list