From 323272db175204b951f119dae4bd99ef05e20f13 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 7 Jan 2014 22:43:34 +0100 Subject: import vanilla x86_64 code as x32 --- crt/x32/crti.s | 9 +++++++++ crt/x32/crtn.s | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 crt/x32/crti.s create mode 100644 crt/x32/crtn.s (limited to 'crt') 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 -- cgit v1.2.1