fix FLT_ROUNDS to reflect the current rounding mode
[musl] / crt / crt1.c
index e69de29..14c4a52 100644 (file)
@@ -0,0 +1,16 @@
+#include <features.h>
+
+#include "crt_arch.h"
+
+int main();
+void _init() __attribute__((weak));
+void _fini() __attribute__((weak));
+_Noreturn int __libc_start_main(int (*)(), int, char **,
+       void (*)(), void(*)(), void(*)());
+
+void __cstart(long *p)
+{
+       int argc = p[0];
+       char **argv = (void *)(p+1);
+       __libc_start_main(main, argc, argv, _init, _fini, 0);
+}