summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/c6x/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/c6x/crtn.S')
-rw-r--r--libc/sysdeps/linux/c6x/crtn.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/c6x/crtn.S b/libc/sysdeps/linux/c6x/crtn.S
new file mode 100644
index 000000000..37e799df3
--- /dev/null
+++ b/libc/sysdeps/linux/c6x/crtn.S
@@ -0,0 +1,19 @@
+/*
+ * This file supplies function epilogues for the .init and .fini sections.
+ * It is linked in after all other files.
+ */
+
+ .section .init
+ ldw .d2t2 *+B15(4), B3
+ add .d2 B15, 8, B15
+ nop 3
+ ret .s2 B3
+ nop 5
+
+ .section .fini
+ ldw .d2t2 *+B15(4), B3
+ add .d2 B15, 8, B15
+ nop 3
+ ret .s2 B3
+ nop 5
+