summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/h8300/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/h8300/crti.S')
-rw-r--r--libc/sysdeps/linux/h8300/crti.S30
1 files changed, 30 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/h8300/crti.S b/libc/sysdeps/linux/h8300/crti.S
new file mode 100644
index 000000000..270df276e
--- /dev/null
+++ b/libc/sysdeps/linux/h8300/crti.S
@@ -0,0 +1,30 @@
+#ifdef __H8300H__
+ .h8300h
+#endif
+#ifdef __H8300S__
+ .h8300s
+#endif
+ .file "initfini.c"
+; #APP
+
+ .section .init
+; #NO_APP
+ .align 1
+ .global __init
+__init:
+ mov.l er6,@-er7
+ mov.l er7,er6
+; #APP
+ .align 1
+
+ .section .fini
+; #NO_APP
+ .align 1
+ .global __fini
+__fini:
+ mov.l er6,@-er7
+ mov.l er7,er6
+; #APP
+ .align 1
+
+ .end