[uClibc-cvs] uClibc/libc/sysdeps/linux/i386 crt0.S,1.22,1.23
Erik Andersen
andersen at uclibc.org
Fri May 14 10:51:05 UTC 2004
Update of /var/cvs/uClibc/libc/sysdeps/linux/i386
In directory nail:/tmp/cvs-serv22197/libc/sysdeps/linux/i386
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/i386/crt0.S,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- a/crt0.S 17 Jan 2004 14:45:55 -0000 1.22
+++ b/crt0.S 14 May 2004 10:51:03 -0000 1.23
@@ -92,7 +92,7 @@
pushl $_init
#endif
- /* Push envp, argc, and argc arguments to __uClibc_start_main() on the stack */
+ /* Push envp, argc, and argc arguments to __uClibc_start_main() on the stack */
pushl %eax /* Environment pointer */
pushl %ebx /* Argument pointer */
pushl %ecx /* And the argument count */
@@ -104,7 +104,7 @@
call __uClibc_start_main
#endif
#else
- /* Push envp, argc, and argc arguments to __uClibc_start_main() on the stack */
+ /* Push envp, argc, and argc arguments to __uClibc_start_main() on the stack */
pushl %eax /* Environment pointer */
pushl %ebx /* Argument pointer */
pushl %ecx /* And the argument count */
@@ -120,10 +120,14 @@
hlt
.size _start,.-_start
- .section ".data"
- .globl __data_start
+
+/* 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
#if defined L_gcrt1 && defined __UCLIBC_PROFILING__
# include "./gmon-start.S"
More information about the uClibc-cvs
mailing list