From 50392995d6e7f3a10fb74bb2f9073a4790f8933c Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 11 Mar 2024 21:40:28 -0400 Subject: simple env with basic test init program --- lib/crt/x86_64/crti.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/crt/x86_64/crti.s (limited to 'lib/crt/x86_64/crti.s') diff --git a/lib/crt/x86_64/crti.s b/lib/crt/x86_64/crti.s new file mode 100644 index 0000000..0f06273 --- /dev/null +++ b/lib/crt/x86_64/crti.s @@ -0,0 +1,11 @@ +.section .init +.global _init +_init: + pushq %rbp + movq %rsp, %rbp + +.section .fini +.global _fini +_fini: + pushq %rbp + movq %rsp, %rbp -- cgit v1.2.1