Some changes, syscalls use reg structs and have return values

This commit is contained in:
2024-08-25 19:40:10 +02:00
parent da1171983b
commit 105b58a684
8 changed files with 133 additions and 67 deletions
+13
View File
@@ -0,0 +1,13 @@
#include <stdio.h>
__attribute__ ((section("entry")))
int main(int argc, char** argv) {
if (argc < 2) {
printf("Usage: %s <file>\n", argv[0]);
return 1;
}
printf("%s\n", argv[1]);
return 0;
}