diff options
Diffstat (limited to 'patches/newlib/2.3.0.20160226')
3 files changed, 76 insertions, 0 deletions
diff --git a/patches/newlib/2.3.0.20160226/100-fix-unaligned-access-memcpy-m68k.patch b/patches/newlib/2.3.0.20160226/100-fix-unaligned-access-memcpy-m68k.patch new file mode 100644 index 0000000..1d0b49b --- /dev/null +++ b/patches/newlib/2.3.0.20160226/100-fix-unaligned-access-memcpy-m68k.patch @@ -0,0 +1,27 @@ +The m68k mcpu processor does not like unaligned access + +Disable at least mcpu32, m68010 and m68020. These processors certainly +do not like unaligned accesses. + +Signed-off-by: Remy Bohmer <linux@bohmer.net> +[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0] +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> +[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0] +Signed-off-by: Austin Morton <austinpmorton@gmail.com> +--- + newlib/libc/machine/m68k/memcpy.S | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: newlib-1.20.0/newlib/libc/machine/m68k/memcpy.S +=================================================================== +--- newlib-1.20.0.orig/newlib/libc/machine/m68k/memcpy.S ++++ newlib-1.20.0/newlib/libc/machine/m68k/memcpy.S +@@ -15,7 +15,7 @@ + + #include "m68kasm.h" + +-#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) ++#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__) + # define MISALIGNED_OK 1 + #else + # define MISALIGNED_OK 0 diff --git a/patches/newlib/2.3.0.20160226/110-fix-eabihf.patch b/patches/newlib/2.3.0.20160226/110-fix-eabihf.patch new file mode 100644 index 0000000..37d8842 --- /dev/null +++ b/patches/newlib/2.3.0.20160226/110-fix-eabihf.patch @@ -0,0 +1,24 @@ +diff -urpN newlib-2.3.0.20160226.orig/libgloss/arm/configure newlib-2.3.0.20160226/libgloss/arm/configure +--- newlib-2.3.0.20160226.orig/libgloss/arm/configure 2017-04-11 00:41:25.064877413 -0700 ++++ newlib-2.3.0.20160226/libgloss/arm/configure 2017-04-11 00:43:12.321788960 -0700 +@@ -2531,7 +2531,7 @@ test "${CCASFLAGS+set}" = set || CCASFLA + + + case "${target}" in +- *-*-elf | *-*-eabi | *-*-tirtos*) ++ *-*-elf | *-*-eabi* | *-*-tirtos*) + objtype=elf- + ;; + *-*-coff) +diff -urpN newlib-2.3.0.20160226.orig/libgloss/arm/configure.in newlib-2.3.0.20160226/libgloss/arm/configure.in +--- newlib-2.3.0.20160226.orig/libgloss/arm/configure.in 2017-04-11 00:41:25.064877413 -0700 ++++ newlib-2.3.0.20160226/libgloss/arm/configure.in 2017-04-11 00:43:12.321788960 -0700 +@@ -49,7 +49,7 @@ AC_PROG_RANLIB + LIB_AM_PROG_AS + + case "${target}" in +- *-*-elf | *-*-eabi | *-*-tirtos*) ++ *-*-elf | *-*-eabi* | *-*-tirtos*) + objtype=elf- + ;; + *-*-coff) diff --git a/patches/newlib/2.3.0.20160226/200-fix-mt-cflags.patch b/patches/newlib/2.3.0.20160226/200-fix-mt-cflags.patch new file mode 100644 index 0000000..8c080e4 --- /dev/null +++ b/patches/newlib/2.3.0.20160226/200-fix-mt-cflags.patch @@ -0,0 +1,25 @@ +diff -urpN newlib-2.3.0.20160226.orig/config/mt-d30v newlib-2.3.0.20160226/config/mt-d30v +--- newlib-2.3.0.20160226.orig/config/mt-d30v 2017-04-11 00:51:27.736765855 -0700 ++++ newlib-2.3.0.20160226/config/mt-d30v 2017-04-11 00:55:51.134626702 -0700 +@@ -1,4 +1,4 @@ + # Build libraries optimizing for space, not speed. + # Turn off warnings about symbols named the same as registers +- CFLAGS_FOR_TARGET = -g -Os -Wa,-C +- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C ++ CFLAGS_FOR_TARGET += -g -Os -Wa,-C ++ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C +diff -urpN newlib-2.3.0.20160226.orig/config/mt-gnu newlib-2.3.0.20160226/config/mt-gnu +--- newlib-2.3.0.20160226.orig/config/mt-gnu 2017-04-11 00:51:27.736765855 -0700 ++++ newlib-2.3.0.20160226/config/mt-gnu 2017-04-11 00:55:51.134626702 -0700 +@@ -1 +1 @@ +-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE ++CXXFLAGS_FOR_TARGET += $(CXXFLAGS) -D_GNU_SOURCE +diff -urpN newlib-2.3.0.20160226.orig/config/mt-ospace newlib-2.3.0.20160226/config/mt-ospace +--- newlib-2.3.0.20160226.orig/config/mt-ospace 2017-04-11 00:51:27.736765855 -0700 ++++ newlib-2.3.0.20160226/config/mt-ospace 2017-04-11 00:55:51.134626702 -0700 +@@ -1,3 +1,3 @@ + # Build libraries optimizing for space, not speed. +- CFLAGS_FOR_TARGET = -g -Os +- CXXFLAGS_FOR_TARGET = -g -Os ++ CFLAGS_FOR_TARGET += -g -Os ++ CXXFLAGS_FOR_TARGET += -g -Os |