diff --git a/dkarm-eabi/patches/newlib-2.3.0.20160104.patch b/dkarm-eabi/patches/newlib-2.3.0.20160104.patch index 8a20613..bfd5920 100644 --- a/dkarm-eabi/patches/newlib-2.3.0.20160104.patch +++ b/dkarm-eabi/patches/newlib-2.3.0.20160104.patch @@ -12876,6 +12876,27 @@ diff -NBaur newlib-2.3.0.20160104/newlib/configure.host.orig newlib-2.3.0.201601 +if test -z "${have_crt0}" && test -n "${sys_dir}"; then + have_crt0="yes" +fi +diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/stdio.h newlib-2.3.0.20160104-arm/newlib/libc/include/stdio.h +--- newlib-2.3.0.20160104/newlib/libc/include/stdio.h 2016-02-03 16:45:50.380000000 +0000 ++++ newlib-2.3.0.20160104-arm/newlib/libc/include/stdio.h 2016-02-03 16:48:53.500000000 +0000 +@@ -208,7 +208,7 @@ + #else + int _EXFUN(fgetpos, (FILE *__restrict, fpos_t *__restrict)); + #endif +-int _EXFUN(fseek, (FILE *, long, int)); ++int _EXFUN(fseek, (FILE *, off_t, int)); + #ifdef _COMPILING_NEWLIB + int _EXFUN(fsetpos, (FILE *, const _fpos_t *)); + #else +@@ -402,7 +402,7 @@ + size_t _EXFUN(_fread_unlocked_r, (struct _reent *, _PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); + int _EXFUN(_fscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, ...) + _ATTRIBUTE ((__format__ (__scanf__, 3, 4)))); +-int _EXFUN(_fseek_r, (struct _reent *, FILE *, long, int)); ++int _EXFUN(_fseek_r, (struct _reent *, FILE *, off_t, int)); + int _EXFUN(_fseeko_r,(struct _reent *, FILE *, _off_t, int)); + long _EXFUN(_ftell_r, (struct _reent *, FILE *)); + _off_t _EXFUN(_ftello_r,(struct _reent *, FILE *)); diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/config.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/config.h --- newlib-2.3.0.20160104/newlib/libc/include/sys/config.h 2016-01-04 17:57:31.000000000 +0000 +++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/config.h 2016-01-26 13:06:41.588000000 +0000 @@ -14360,6 +14381,27 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdio/fread.c newlib-2.3.0.2016010 { /* no more input: return partial result */ #ifdef __SCLE +diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdio/fseek.c newlib-2.3.0.20160104-arm/newlib/libc/stdio/fseek.c +--- newlib-2.3.0.20160104/newlib/libc/stdio/fseek.c 2016-01-04 17:57:31.000000000 +0000 ++++ newlib-2.3.0.20160104-arm/newlib/libc/stdio/fseek.c 2016-02-03 16:50:52.272000000 +0000 +@@ -108,7 +108,7 @@ + _DEFUN(_fseek_r, (ptr, fp, offset, whence), + struct _reent *ptr _AND + register FILE *fp _AND +- long offset _AND ++ off_t offset _AND + int whence) + { + return _fseeko_r (ptr, fp, offset, whence); +@@ -119,7 +119,7 @@ + int + _DEFUN(fseek, (fp, offset, whence), + register FILE *fp _AND +- long offset _AND ++ off_t offset _AND + int whence) + { + return _fseek_r (_REENT, fp, offset, whence); diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdlib/mbtowc_r.c newlib-2.3.0.20160104-arm/newlib/libc/stdlib/mbtowc_r.c --- newlib-2.3.0.20160104/newlib/libc/stdlib/mbtowc_r.c 2016-01-04 17:57:31.000000000 +0000 +++ newlib-2.3.0.20160104-arm/newlib/libc/stdlib/mbtowc_r.c 2016-01-26 13:06:41.592000000 +0000 @@ -14384,6 +14426,24 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdlib/wctomb_r.c newlib-2.3.0.201 /* Cygwin starts up in UTF-8 mode. */ = __utf8_wctomb; #else +diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/include/machine/_types.h newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/include/machine/_types.h +--- newlib-2.3.0.20160104/newlib/libc/sys/arm/include/machine/_types.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/include/machine/_types.h 2016-02-03 17:14:12.524000000 +0000 +@@ -0,0 +1,13 @@ ++#ifndef _MACHINE__TYPES_H ++#define _MACHINE__TYPES_H ++ ++#include ++ ++/* Use 64bit types */ ++typedef __int64_t _off_t; ++#define __off_t_defined 1 ++ ++typedef __int64_t _fpos_t; ++#define __fpos_t_defined 1 ++ ++#endif +\ No newline at end of file diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/lock.h newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/lock.h --- newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/lock.h 1970-01-01 01:00:00.000000000 +0100 +++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/lock.h 2016-01-26 13:06:41.592000000 +0000