From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- 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/x32') diff --git a/crt/x32/crti.s b/crt/x32/crti.s new file mode 100644 index 0000000..4788968 --- /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 0000000..29198b7 --- /dev/null +++ b/crt/x32/crtn.s @@ -0,0 +1,7 @@ +.section .init + pop %rax + ret + +.section .fini + pop %rax + ret -- cgit v1.2.3