summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh/crt0.S')
-rw-r--r--libc/sysdeps/linux/sh/crt0.S17
1 files changed, 13 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/sh/crt0.S b/libc/sysdeps/linux/sh/crt0.S
index 64dd3f493..a978b3fcf 100644
--- a/libc/sysdeps/linux/sh/crt0.S
+++ b/libc/sysdeps/linux/sh/crt0.S
@@ -70,7 +70,7 @@ _start:
jmp @r0
nop
-_start_end:
+_start_end:
.align 2
L_main:
@@ -101,7 +101,7 @@ L_main:
mov.l L_abort, r0
jmp @r0
nop
-_start_end:
+_start_end:
.align 2
L_main:
@@ -124,9 +124,18 @@ L_fini:
#endif
-L_abort:
- .long abort
+L_abort:
+ .long abort
+
+/* 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"
#endif
+