summaryrefslogtreecommitdiff
path: root/crt/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'crt/x86_64')
-rw-r--r--crt/x86_64/crti.s2
-rw-r--r--crt/x86_64/crtn.s2
2 files changed, 4 insertions, 0 deletions
diff --git a/crt/x86_64/crti.s b/crt/x86_64/crti.s
index 2eb23ed5..4788968b 100644
--- a/crt/x86_64/crti.s
+++ b/crt/x86_64/crti.s
@@ -1,7 +1,9 @@
.section .init
.global _init
_init:
+ push %rax
.section .fini
.global _fini
_fini:
+ push %rax
diff --git a/crt/x86_64/crtn.s b/crt/x86_64/crtn.s
index 055451ed..29198b77 100644
--- a/crt/x86_64/crtn.s
+++ b/crt/x86_64/crtn.s
@@ -1,5 +1,7 @@
.section .init
+ pop %rax
ret
.section .fini
+ pop %rax
ret