aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-25 12:41:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-25 12:41:55 +0000
commit348062c88b71dc7d24230c5a7001b6242650c70b (patch)
treec676bd6412f9bf38937a4b29f87ec4df3eea8582 /toolchain
parent4a3f5f8b652f48112507a5e5a72f793980834a39 (diff)
downloadmaster-187ad058-348062c88b71dc7d24230c5a7001b6242650c70b.tar.gz
master-187ad058-348062c88b71dc7d24230c5a7001b6242650c70b.tar.bz2
master-187ad058-348062c88b71dc7d24230c5a7001b6242650c70b.zip
gcc: backport a libgcc fix for a dependency on libc write() on ARM
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/patches/5.2.0/050-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.2.0/050-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch b/toolchain/gcc/patches/5.2.0/050-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch
new file mode 100644
index 0000000000..371ca51f0f
--- /dev/null
+++ b/toolchain/gcc/patches/5.2.0/050-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch
@@ -0,0 +1,35 @@
+From: nsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Mon, 23 Nov 2015 15:17:55 +0000
+Subject: [PATCH] [ARM] PR target/68059 libgcc should not use __write for
+ printing fatal error
+
+libgcc/
+ PR target/68059
+ * config/arm/linux-atomic-64bit.c (__write): Rename to...
+ (write): ...this and fix the return type.
+
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230762 138bc75d-0d04-0410-961f-82ee72b054a4
+---
+
+--- a/libgcc/config/arm/linux-atomic-64bit.c
++++ b/libgcc/config/arm/linux-atomic-64bit.c
+@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTI
+ kernels; we check for that in an init section and bail out rather
+ unceremoneously. */
+
+-extern unsigned int __write (int fd, const void *buf, unsigned int count);
++extern int write (int fd, const void *buf, unsigned int count);
+ extern void abort (void);
+
+ /* Kernel helper for compare-and-exchange. */
+@@ -56,7 +56,7 @@ static void __check_for_sync8_kernelhelp
+ for the user - I'm not sure I can rely on much else being
+ available at this point, so do the same as generic-morestack.c
+ write () and abort (). */
+- __write (2 /* stderr. */, err, sizeof (err));
++ write (2 /* stderr. */, err, sizeof (err));
+ abort ();
+ }
+ };