summaryrefslogtreecommitdiff
path: root/crt
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2014-01-07 22:43:34 +0100
committerrofl0r <retnyg@gmx.net>2014-02-23 11:07:18 +0100
commit323272db175204b951f119dae4bd99ef05e20f13 (patch)
tree70329156d5189294b1e9e7f9c7c326924ad62e35 /crt
parent0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f (diff)
downloadmusl-323272db175204b951f119dae4bd99ef05e20f13.tar.gz
import vanilla x86_64 code as x32
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