From d43c1af88b1834a00f8b5f09aa0af1a5e4f5b4aa Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 18 Jul 2022 14:01:21 +0200 Subject: user: a super primitive ELF loader holy shit. this was simpler than i expected it to be --- src/usertestelf.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/usertestelf.c (limited to 'src/usertestelf.c') diff --git a/src/usertestelf.c b/src/usertestelf.c new file mode 100644 index 0000000..19f0096 --- /dev/null +++ b/src/usertestelf.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + _syscall_write(1, "Hello!", 6, 0); + _syscall_exit(0); +} -- cgit v1.2.3