diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-05-14 10:51:16 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-05-14 10:51:16 +0000 |
commit | cd411309b5af27b1a02f324174d1caad98bc0927 (patch) | |
tree | 2cf40de9a708bc02d774f37b2e1f0c0400b72e97 /libc/sysdeps/linux/microblaze | |
parent | b3322420c583e6f77750054aa27e6aab7f88a8c2 (diff) |
__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.
Diffstat (limited to 'libc/sysdeps/linux/microblaze')
-rw-r--r-- | libc/sysdeps/linux/microblaze/crt0.S | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/microblaze/crt0.S b/libc/sysdeps/linux/microblaze/crt0.S index 67416b329..99687b707 100644 --- a/libc/sysdeps/linux/microblaze/crt0.S +++ b/libc/sysdeps/linux/microblaze/crt0.S @@ -8,7 +8,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@gnu.org> */ @@ -19,7 +19,7 @@ */ .text -C_ENTRY(_start): +C_ENTRY(_start): lw r5, r0, r1 // Arg 0: argc addi r6, r1, 4 // Arg 1: argv @@ -45,3 +45,12 @@ C_ENTRY(_start): 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 + |