summaryrefslogtreecommitdiff
path: root/patches/newlib/2.5.0.20170323
diff options
context:
space:
mode:
Diffstat (limited to 'patches/newlib/2.5.0.20170323')
-rw-r--r--patches/newlib/2.5.0.20170323/100-fix-unaligned-access-memcpy-m68k.patch27
-rw-r--r--patches/newlib/2.5.0.20170323/110-fix-eabihf.patch24
-rw-r--r--patches/newlib/2.5.0.20170323/200-fix-mt-cflags.patch10
3 files changed, 61 insertions, 0 deletions
diff --git a/patches/newlib/2.5.0.20170323/100-fix-unaligned-access-memcpy-m68k.patch b/patches/newlib/2.5.0.20170323/100-fix-unaligned-access-memcpy-m68k.patch
new file mode 100644
index 0000000..1d0b49b
--- /dev/null
+++ b/patches/newlib/2.5.0.20170323/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.5.0.20170323/110-fix-eabihf.patch b/patches/newlib/2.5.0.20170323/110-fix-eabihf.patch
new file mode 100644
index 0000000..21ed2d3
--- /dev/null
+++ b/patches/newlib/2.5.0.20170323/110-fix-eabihf.patch
@@ -0,0 +1,24 @@
+diff -urpN newlib-2.5.0.20170323.orig/libgloss/arm/configure newlib-2.5.0.20170323/libgloss/arm/configure
+--- newlib-2.5.0.20170323.orig/libgloss/arm/configure 2017-04-11 00:41:25.464880809 -0700
++++ newlib-2.5.0.20170323/libgloss/arm/configure 2017-04-11 00:43:12.333789062 -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.5.0.20170323.orig/libgloss/arm/configure.in newlib-2.5.0.20170323/libgloss/arm/configure.in
+--- newlib-2.5.0.20170323.orig/libgloss/arm/configure.in 2017-04-11 00:41:25.464880809 -0700
++++ newlib-2.5.0.20170323/libgloss/arm/configure.in 2017-04-11 00:43:12.333789062 -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.5.0.20170323/200-fix-mt-cflags.patch b/patches/newlib/2.5.0.20170323/200-fix-mt-cflags.patch
new file mode 100644
index 0000000..cc15551
--- /dev/null
+++ b/patches/newlib/2.5.0.20170323/200-fix-mt-cflags.patch
@@ -0,0 +1,10 @@
+diff -urpN newlib-2.5.0.20170323.orig/config/mt-d30v newlib-2.5.0.20170323/config/mt-d30v
+--- newlib-2.5.0.20170323.orig/config/mt-d30v 2017-04-11 00:51:28.180768874 -0700
++++ newlib-2.5.0.20170323/config/mt-d30v 2017-04-11 00:55:51.138626731 -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