[uClibc-cvs] uClibc/libc/sysdeps/linux/mips crt0.S,1.11,1.12
Erik Andersen
andersen at uclibc.org
Fri May 14 10:51:12 UTC 2004
Update of /var/cvs/uClibc/libc/sysdeps/linux/mips
In directory nail:/tmp/cvs-serv22197/libc/sysdeps/linux/mips
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/mips/crt0.S,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- a/crt0.S 29 Nov 2003 02:17:24 -0000 1.11
+++ b/crt0.S 14 May 2004 10:51:09 -0000 1.12
@@ -23,7 +23,7 @@
* we can be sure that main() actually gets linked in */
.type main,%function
-__start:
+__start:
#ifdef __PIC__
.set noreorder
bltzal zero,0f
@@ -43,7 +43,7 @@
/* multiple of 8 for longlong/double support */
la v0, _fini
sw v0, 16(sp) /* stack has 5th argument, address of _fini */
-
+
/* Ok, now run uClibc's main() -- shouldn't return */
jal __uClibc_start_main
@@ -53,6 +53,11 @@
hlt:
b hlt
- .section ".data"
+/* 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