summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2023-11-14 12:54:48 -0500
committerJakob Kaivo <jkk@ung.org>2023-11-14 12:54:48 -0500
commitafcef1659dc3505d834f0be22056dc16d939e60c (patch)
tree0e5bced6af37664968961d6a918b9d21be55ec50
parent2127d8359ac193b6d6980b9b854a238fb13e247c (diff)
disable startup routines
-rw-r--r--src/__main.c5
-rw-r--r--src/__sys.x86-64.s21
2 files changed, 5 insertions, 21 deletions
diff --git a/src/__main.c b/src/__main.c
index 7e3cd95f..1cfb5119 100644
--- a/src/__main.c
+++ b/src/__main.c
@@ -1,3 +1,5 @@
+#if 0
+
#include <stdlib.h>
#include <stdio.h>
#include <locale.h>
@@ -27,3 +29,6 @@ void __main(int argc, char **argv)
}
void __stack_chk_fail(void) {}
+
+
+#endif
diff --git a/src/__sys.x86-64.s b/src/__sys.x86-64.s
index 48267a7e..e69de29b 100644
--- a/src/__sys.x86-64.s
+++ b/src/__sys.x86-64.s
@@ -1,21 +0,0 @@
-.global __syscall
-.type __syscall, %function
-__syscall:
- mov %rdi, %rax
- mov %rsi, %rdi
- mov %rdx, %rsi
- mov %rcx, %rdx
- mov %r8, %r10
- mov %r9, %r8
- mov 8(%rsp), %r9
- syscall
- ret
- .size __syscall,.-__syscall
-
-.global _start
-.type _start, %function
-_start:
- popq %rdi
- movq %rsp, %rsi
- call __main
- .size _start,.-_start