aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arc/crtn.asm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/arc/crtn.asm')
-rw-r--r--gcc/config/arc/crtn.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/arc/crtn.asm b/gcc/config/arc/crtn.asm
new file mode 100644
index 00000000000..bf8cb0d3430
--- /dev/null
+++ b/gcc/config/arc/crtn.asm
@@ -0,0 +1,11 @@
+# This file just makes sure that the .fini and .init sections do in
+# fact return. This file is the last thing linked into any executable.
+
+ .section .init
+ pop_s blink
+ j_s [blink]
+
+
+ .section .fini
+ pop_s blink
+ j_s [blink]