summaryrefslogtreecommitdiff
path: root/crt
diff options
context:
space:
mode:
Diffstat (limited to 'crt')
-rw-r--r--crt/x32/crti.s9
-rw-r--r--crt/x32/crtn.s7
2 files changed, 16 insertions, 0 deletions
diff --git a/crt/x32/crti.s b/crt/x32/crti.s
new file mode 100644
index 00000000..4788968b
--- /dev/null
+++ b/crt/x32/crti.s
@@ -0,0 +1,9 @@
+.section .init
+.global _init
+_init:
+ push %rax
+
+.section .fini
+.global _fini
+_fini:
+ push %rax
diff --git a/crt/x32/crtn.s b/crt/x32/crtn.s
new file mode 100644
index 00000000..29198b77
--- /dev/null
+++ b/crt/x32/crtn.s
@@ -0,0 +1,7 @@
+.section .init
+ pop %rax
+ ret
+
+.section .fini
+ pop %rax
+ ret