diff --git a/build.sh b/build.sh index 2551317..89aa6dd 100755 --- a/build.sh +++ b/build.sh @@ -132,7 +132,7 @@ cd ../../../../.. echo "CONFIGURE NEWLIB" cd newlib-obj -../newlib-${NEWLIB_VER}/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX || exit +../newlib-${NEWLIB_VER}/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX -enable-newlib-hw-fp || exit echo "COMPILE NEWLIB" make || exit diff --git a/newlib-files/crt0.c b/newlib-files/crt0.c index 9658c4a..2fe4f98 100644 --- a/newlib-files/crt0.c +++ b/newlib-files/crt0.c @@ -1,6 +1,10 @@ - extern int main(); //int argc, char **argv, char **environ); +extern void initC2D(); + + int _Dmain(){ + initC2D(); + return main(); } diff --git a/newlib-files/syscalls.c b/newlib-files/syscalls.c index f0ddec6..4f9a971 100644 --- a/newlib-files/syscalls.c +++ b/newlib-files/syscalls.c @@ -107,8 +107,6 @@ open(const char *name, int flags, ...) { return -1; } - printf("new fd assigned: %d\n", fd); - return fd; }