summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/c6x/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/c6x/crti.S')
-rw-r--r--libc/sysdeps/linux/c6x/crti.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/c6x/crti.S b/libc/sysdeps/linux/c6x/crti.S
new file mode 100644
index 000000000..e689a04d1
--- /dev/null
+++ b/libc/sysdeps/linux/c6x/crti.S
@@ -0,0 +1,17 @@
+/*
+ * This file just supplies function prologues for the .init and .fini
+ * sections. It is linked in before crtbegin.o.
+ */
+
+ .section .init
+ .globl _init
+ .type _init,@function
+_init:
+ add .l2 -8, B15, B15
+ stw .d2t2 B3,*+B15(4)
+ .section .fini
+ .globl _fini
+ .type _fini,@function
+_fini:
+ add .l2 -8, B15, B15
+ stw .d2t2 B3,*+B15(4)