diff options
Diffstat (limited to 'libc/sysdeps/linux/v850')
-rw-r--r-- | libc/sysdeps/linux/v850/crt0.S | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/v850/crt0.S b/libc/sysdeps/linux/v850/crt0.S index fe36d0af8..11d7bb5aa 100644 --- a/libc/sysdeps/linux/v850/crt0.S +++ b/libc/sysdeps/linux/v850/crt0.S @@ -7,7 +7,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> */ @@ -18,7 +18,7 @@ */ .text -C_ENTRY(start): +C_ENTRY(start): ld.w 0[sp], r6 // Arg 0: argc addi 4, sp, r7 // Arg 1: argv @@ -46,3 +46,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 + |