summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh64
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh64')
-rw-r--r--libc/sysdeps/linux/sh64/crt0.S10
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/sh64/crt0.S b/libc/sysdeps/linux/sh64/crt0.S
index bd54ba5e2..271dfbaca 100644
--- a/libc/sysdeps/linux/sh64/crt0.S
+++ b/libc/sysdeps/linux/sh64/crt0.S
@@ -43,7 +43,7 @@
.section .text64,"xa"
.align 2 /* 2^2 = 4 */
-
+
_start:
/* Clear the frame pointer since this is the outermost frame. */
### mov #0, r14 # qqq
@@ -76,3 +76,11 @@ __main:
ptabs/l r18,tr0
blink tr0,r63
+/* 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
+