From cd411309b5af27b1a02f324174d1caad98bc0927 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 14 May 2004 10:51:16 +0000 Subject: __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. --- libc/sysdeps/linux/mips/crt0.S | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/mips/crt0.S') diff --git a/libc/sysdeps/linux/mips/crt0.S b/libc/sysdeps/linux/mips/crt0.S index 7a79c433f..3ce8c9cd8 100644 --- a/libc/sysdeps/linux/mips/crt0.S +++ b/libc/sysdeps/linux/mips/crt0.S @@ -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 @@ __start: /* 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 @@ __start: 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 + -- cgit v1.2.3