[uClibc-cvs] uClibc/libc/sysdeps/linux/v850 crt0.S,1.7,1.8

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


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

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/v850/crt0.S,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/crt0.S	21 Feb 2003 10:17:43 -0000	1.7
+++ b/crt0.S	14 May 2004 10:51:16 -0000	1.8
@@ -7,7 +7,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>
  */
 
@@ -18,7 +18,7 @@
 */
 
 	.text
-C_ENTRY(start):	
+C_ENTRY(start):
 	ld.w	0[sp], r6		// Arg 0: argc
 
 	addi	4, sp, r7		// Arg 1: argv
@@ -46,3 +46,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