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

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


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

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/i960/crt0.S,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/crt0.S	18 Jun 2002 01:10:24 -0000	1.1
+++ b/crt0.S	14 May 2004 10:51:03 -0000	1.2
@@ -1,5 +1,5 @@
 #
-# clone.S, part of the i960 support for the uClibc library.
+# crt0.S, part of the i960 support for the uClibc library.
 #
 # Copyright (C) 2002 by Okiok Data Ltd.  http://www.okiok.com/
 #
@@ -19,7 +19,7 @@
 #
 
 /*
- *        
+ *
  * The behavior in this file is tightly coupled with how the linux kernel sets things up
  * on the stack before calling us.
  *
@@ -28,7 +28,7 @@
  *
  * ^
  * |                        <- sp somewhere around here, after being aligned.
- * |        
+ * |
  * |envp    -> envp[0]
  * |argv    -> argv[0]
  * |argc                    <- g13
@@ -37,13 +37,22 @@
  * create_flat_tables_stack_grows_up in fs/binfmt_flat.c
  *
  * I believe having to use this register could probably be avoided.
- *        
+ *
  */
-        
+
         .globl  start
 start:
         mov     g13, r3
         ldt     (r3), g0
         callx   ___uClibc_main
-        
+
 /* We might want to add some instruction so that it crashes if main returns */
+
+/* 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