[uClibc-cvs] uClibc/libc/sysdeps/linux/frv crt0.S,1.1,1.2
Erik Andersen
andersen at uclibc.org
Fri May 14 10:51:04 UTC 2004
Update of /var/cvs/uClibc/libc/sysdeps/linux/frv
In directory nail:/tmp/cvs-serv22197/libc/sysdeps/linux/frv
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/frv/crt0.S,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/crt0.S 18 Feb 2004 08:04:49 -0000 1.1
+++ b/crt0.S 14 May 2004 10:51:02 -0000 1.2
@@ -57,7 +57,7 @@
setlo #gprello(.Lcall), gr5
sub.p gr4, gr5, gr4
/* gr4 now holds the _gp address. */
-
+
mov gr16, gr8
sethi.p #gprelhi(__ROFIXUP_LIST__), gr9
sethi #gprelhi(__ROFIXUP_END__), gr10
@@ -99,7 +99,7 @@
#else
mov.p gr17, gr15
call __uClibc_main
-#endif
+#endif
/* Crash if somehow `exit' returns anyways. */
jmpl @(gr0,gr0)
@@ -108,3 +108,12 @@
#if defined L_gcrt1 && defined __UCLIBC_PROFILING__
# include "./gmon-start.S"
#endif
+
+/* 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