summaryrefslogtreecommitdiff
path: root/patches/newlib/2.0.0
diff options
context:
space:
mode:
Diffstat (limited to 'patches/newlib/2.0.0')
-rw-r--r--patches/newlib/2.0.0/100-fix-optimising-for-space.patch8
-rw-r--r--patches/newlib/2.0.0/100-fix-unaligned-access-memcpy-m68k.patch27
-rw-r--r--patches/newlib/2.0.0/110-fix-eabihf.patch24
-rw-r--r--patches/newlib/2.0.0/200-fix-mt-cflags.patch25
4 files changed, 76 insertions, 8 deletions
diff --git a/patches/newlib/2.0.0/100-fix-optimising-for-space.patch b/patches/newlib/2.0.0/100-fix-optimising-for-space.patch
deleted file mode 100644
index 8480f92..0000000
--- a/patches/newlib/2.0.0/100-fix-optimising-for-space.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- newlib-2.0.0/config/mt-ospace-orig 2014-11-13 12:02:45.463578281 +0000
-+++ newlib-2.0.0/config/mt-ospace 2014-11-13 12:03:01.409592374 +0000
-@@ -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
diff --git a/patches/newlib/2.0.0/100-fix-unaligned-access-memcpy-m68k.patch b/patches/newlib/2.0.0/100-fix-unaligned-access-memcpy-m68k.patch
new file mode 100644
index 0000000..1d0b49b
--- /dev/null
+++ b/patches/newlib/2.0.0/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.0.0/110-fix-eabihf.patch b/patches/newlib/2.0.0/110-fix-eabihf.patch
new file mode 100644
index 0000000..5bb2405
--- /dev/null
+++ b/patches/newlib/2.0.0/110-fix-eabihf.patch
@@ -0,0 +1,24 @@
+diff -urpN newlib-2.0.0.orig/libgloss/arm/configure newlib-2.0.0/libgloss/arm/configure
+--- newlib-2.0.0.orig/libgloss/arm/configure 2017-04-11 00:41:24.304870963 -0700
++++ newlib-2.0.0/libgloss/arm/configure 2017-04-11 00:43:12.297788756 -0700
+@@ -2540,7 +2540,7 @@ test "${CCASFLAGS+set}" = set || CCASFLA
+
+
+ case "${target}" in
+- *-*-elf | *-*-eabi)
++ *-*-elf | *-*-eabi*)
+ objtype=elf-
+ ;;
+ *-*-coff)
+diff -urpN newlib-2.0.0.orig/libgloss/arm/configure.in newlib-2.0.0/libgloss/arm/configure.in
+--- newlib-2.0.0.orig/libgloss/arm/configure.in 2017-04-11 00:41:24.304870963 -0700
++++ newlib-2.0.0/libgloss/arm/configure.in 2017-04-11 00:43:12.297788756 -0700
+@@ -49,7 +49,7 @@ AC_PROG_RANLIB
+ LIB_AM_PROG_AS
+
+ case "${target}" in
+- *-*-elf | *-*-eabi)
++ *-*-elf | *-*-eabi*)
+ objtype=elf-
+ ;;
+ *-*-coff)
diff --git a/patches/newlib/2.0.0/200-fix-mt-cflags.patch b/patches/newlib/2.0.0/200-fix-mt-cflags.patch
new file mode 100644
index 0000000..d2b0529
--- /dev/null
+++ b/patches/newlib/2.0.0/200-fix-mt-cflags.patch
@@ -0,0 +1,25 @@
+diff -urpN newlib-2.0.0.orig/config/mt-d30v newlib-2.0.0/config/mt-d30v
+--- newlib-2.0.0.orig/config/mt-d30v 2017-04-11 00:51:27.256762590 -0700
++++ newlib-2.0.0/config/mt-d30v 2017-04-11 00:55:51.126626644 -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.0.0.orig/config/mt-gnu newlib-2.0.0/config/mt-gnu
+--- newlib-2.0.0.orig/config/mt-gnu 2017-04-11 00:51:27.256762590 -0700
++++ newlib-2.0.0/config/mt-gnu 2017-04-11 00:55:51.126626644 -0700
+@@ -1 +1 @@
+-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
++CXXFLAGS_FOR_TARGET += $(CXXFLAGS) -D_GNU_SOURCE
+diff -urpN newlib-2.0.0.orig/config/mt-ospace newlib-2.0.0/config/mt-ospace
+--- newlib-2.0.0.orig/config/mt-ospace 2017-04-11 00:51:27.256762590 -0700
++++ newlib-2.0.0/config/mt-ospace 2017-04-11 00:55:51.126626644 -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