[uClibc-cvs] uClibc/libc/sysdeps/linux/microblaze crt0.S,1.1,1.2

Erik Andersen andersen at uclibc.org
Fri May 14 10:51:11 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/microblaze
In directory nail:/tmp/cvs-serv22197/libc/sysdeps/linux/microblaze

Modified Files:
	crt0.S 
Log Message:
__data_start needs to be added to all crt0.S files that don't currently
have it.  It is used by the boehm gc, amoung other things.


Index: crt0.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/microblaze/crt0.S,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/crt0.S	14 Oct 2003 11:52:28 -0000	1.1
+++ b/crt0.S	14 May 2004 10:51:07 -0000	1.2
@@ -8,7 +8,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles at gnu.org>
  */
 
@@ -19,7 +19,7 @@
 */
 
 	.text
-C_ENTRY(_start):	
+C_ENTRY(_start):
 	lw	r5, r0, r1		// Arg 0: argc
 
 	addi	r6, r1, 4		// Arg 1: argv
@@ -45,3 +45,12 @@
    we can be sure that `main' actually gets linked in.  */
 L_dummy_main_reference:
 	.long	C_SYMBOL_NAME(main)
+
+/* Define a symbol for the first piece of initialized data.  */
+	.data
+	.globl __data_start
+__data_start:
+	.long 0
+	.weak data_start
+	data_start = __data_start
+




More information about the uClibc-cvs mailing list