From 0052eac96aacfa1aabf78509d3705909851b762d Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 10 Nov 2022 19:54:23 +0200 Subject: [PATCH] Update crti & crtn --- libc/runtime/crti.S | 13 +++++++++++++ libc/runtime/crti.c | 0 libc/runtime/crtn.S | 7 +++++++ libc/runtime/crtn.c | 0 4 files changed, 20 insertions(+) create mode 100644 libc/runtime/crti.S delete mode 100644 libc/runtime/crti.c create mode 100644 libc/runtime/crtn.S delete mode 100644 libc/runtime/crtn.c diff --git a/libc/runtime/crti.S b/libc/runtime/crti.S new file mode 100644 index 0000000..9385571 --- /dev/null +++ b/libc/runtime/crti.S @@ -0,0 +1,13 @@ +.section .init +.global _init +.type _init, @function +_init: + push %rbp + movq %rsp, %rbp + +.section .fini +.global _fini +.type _fini, @function +_fini: + push %rbp + movq %rsp, %rbp diff --git a/libc/runtime/crti.c b/libc/runtime/crti.c deleted file mode 100644 index e69de29..0000000 diff --git a/libc/runtime/crtn.S b/libc/runtime/crtn.S new file mode 100644 index 0000000..2fe55b4 --- /dev/null +++ b/libc/runtime/crtn.S @@ -0,0 +1,7 @@ +.section .init + popq %rbp + ret + +.section .fini + popq %rbp + ret diff --git a/libc/runtime/crtn.c b/libc/runtime/crtn.c deleted file mode 100644 index e69de29..0000000