-void mystart(void) __asm__("mystart");
+#include <stdlib.h>
-void mystart(void) {
+int
+main(int artc, char *argv[])
+{
#if defined(__x86_64__)
- asm volatile ("andq $0xfffffffffffffff0, %rsp\n");
+ asm volatile ("andq $0xfffffffffffffff0, %rsp\n");
#elif defined(__i386__)
- asm volatile ("andl $0xfffffff0, %esp\n");
+ asm volatile ("andl $0xfffffff0, %esp\n");
+#elif defined(__arm__) || defined(__arm64__)
+ asm volatile ("");
#else
#error Unsupported architecture
#endif
- _Exit(42);
+ _Exit(42);
}