Commit Graph

315 Commits

Author SHA1 Message Date
Bryan Hundven
ba77b5dab8 strace: Add strace-4.10 patches from debian
https://sources.debian.net/src/strace/4.10-3/debian/patches/

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-09-01 19:38:10 -07:00
Bryan Hundven
d90a3c0ca5 ltrace: Sync ltrace patches with debian
This commit syncs the patches applied to ltrace with debian:
https://sources.debian.net/src/ltrace/0.7.3-5/debian/patches/

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-09-01 19:17:31 -07:00
Ben Gardiner
c90eb9178e gcc/patches: fix linux-unwind.h siginfo incomplete type
This changeset fixes an 'incomplete type struct siginfo' error when
attempting to build gcc-4.5.3 for mipsel.

Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com>
2015-08-25 05:02:55 -04:00
Bryan Hundven
f9bb20c330 Merge pull request #124 from enunes/avr
avr: add support for AVR avr-libc toolchains
2015-07-20 15:22:50 -07:00
Konstantin Käfer
71943aae98 patch glibc 2.11's configure script to support Make 4 2015-07-14 18:31:31 +02:00
Erico Nunes
11646447fa binutils: patch to support -C for AVR memory usage
Distribution avr toolchains commonly add a patch to binutils' size to
enable a custom "-C" option that shows AVR memory usage.
This patch is specific to the AVR architecture.
In order to make the crosstool-ng AVR toolchain compatible with existing
distribution toolchains, this patch is necessary.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
2015-06-21 20:54:00 -03:00
Bryan Hundven
7226fc2ac1 patches: No symlinks in patch directory
With newer version of the patch program, it no longer follows symlinks:

========================================================================
a/patch-2.7.4-x86_64-1.txz:  Upgraded.
  Patch no longer follows symbolic links to input and output files.
This
  ensures that symbolic links created by git-style patches cannot cause
  patch to write outside the working directory.
  For more information, see:
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1196
  (* Security fix *)
========================================================================

This copies patches/glibc/2.20 to patches/glibc/linaro-2.20-2014.11.

This change also closes #51

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-06-14 11:03:13 -07:00
Bryan Hundven
1c39c1729f newlib/patch: Add eabihf patch
This patch gets newlib 1.20.0 to work with eabihf tuple.

This commit closes #23

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-06-02 12:12:00 -07:00
Bryan Hundven
a3aec00547 Merge pull request #108 from bhundven/new_musl_patches
gcc/patches: Add musl patches to gcc 5.1.0
2015-06-02 12:01:07 -07:00
Bryan Hundven
b365649a8b gcc/patches: Add musl patches to gcc 5.1.0
This commit adds new musl patches from gcc-6 (in development) to
gcc-5.1.0.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-06-02 11:59:20 -07:00
Bryan Hundven
67e6896c2b Remove support for experimental patches and musl patches
This functionality was provided so that crosstool-ng could have a
further set of patches considered experimental and unsupported.
Now that musl-libc support is making it's way upstream in gcc, I'm
removing this support and the experimental musl patches.

In later commits, backports from gcc upstream will be added to the
supported patch sets to support musl-libc.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-06-02 10:47:58 -07:00
Bryan Hundven
73fc3a4d82 ncurses: Add gcc5 build patch
This patch comes from here:
http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2015-April/070101.html

This message explains the error:
http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2015-April/070099.html

This commit closes #98

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-05-29 11:00:13 -07:00
Daniel Zimmermann
a71cd4b2b9 debug/ltrace : avoid a gcc 5.1.0 error
to avoid a gcc 5.1.0 error add a patch for ltrace 0.7.3

Signed-off-by: Daniel Zimmermann <netzimme@gmail.com>
2015-04-29 20:53:31 +02:00
Bryan Hundven
00edcaf3a7 Merge pull request #60 from quarthex/patch-1
Do not use strlen to check that a string is empty
2015-04-14 08:21:08 -07:00
Bryan Hundven
18175b8d93 Merge pull request #37 from bhundven/so_long_to_eglibc
So long to eglibc
2015-04-07 19:07:13 -07:00
Romain
c1c1189367 Do not use strlen to check that a string is empty
Here, the exact size of a not empty string is useless.
2015-03-15 15:00:22 +01:00
Bryan Hundven
ae17f9015e Merge pull request #43 from bwalle/glibc-2.16-ghost
libc/glibc: Add patch to fix CVE-2015-0235
2015-02-03 09:37:28 -08:00
Bernhard Walle
6fadfa909b libc/glibc: Add patch to fix CVE-2015-0235
This patch fixes the so-called "GHOST" buffer overflow in glibc 2.16.
See http://www.openwall.com/lists/oss-security/2015/01/27/9.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
2015-02-03 18:12:37 +01:00
Stefan
c98155a82a Add patch to fix building glibc 2.20 on sparc
This actually comes from upstream:
https://sourceware.org/ml/libc-alpha/2014-09/msg00317.html
It is needed for plain glibc as well as linaro's version.
A symlink is added for the latter's version 2.20-2014.11.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
2015-02-01 14:44:28 +01:00
Bryan Hundven
cd47c091ba eglibc: Remove eglibc support
As posted on http://www.eglibc.org/
====================
EGLIBC is no longer developed and such goals are now being addressed
directly in GLIBC.
====================

I'm not interested in maintaining build support for unsupported
software.

Older branches of crosstool-ng continue to have eglibc support.
If you find issues with older branches, I'm always open to pull
requests.

Removing eglibc also frees up glibc cleanup and build optimization.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-01-27 22:43:25 -08:00
Bryan Hundven
1b04bead74 Merge pull request #26 from bhundven/patchwork-andreas-bießmann
uClibc: fix darwin build
2015-01-26 08:01:06 -08:00
Bryan Hundven
7c7b882c8f Merge pull request #32 from manni83/e500v2
Adding upstream patches of powerpc-e500v2-linux-gnuspe
2015-01-13 23:10:39 -08:00
Bryan Hundven
e549e3cc2a Merge pull request #25 from bhundven/patchworks-bernhard_walle
Patchwork bernhard walle
2015-01-10 23:39:01 -08:00
Manfred Rudigier
72e05e7ab1 cc/gcc: added upstream patches for powerpc-e500v2-linux-gnuspe.
Signed-off-by: Manfred Rudigier <manfred.rudigier@omicron.at>
2015-01-09 14:11:40 +01:00
Bob Dunlop
0161a4411b Patch newlib-2.xx optimising for space Append flags to CFLAGS_FOR_TARGET rather than replacing. 2015-01-08 19:35:22 -08:00
Andreas Bießmann
99435117fd uClibc: fix darwin build
uClibc's unifdef tool declares strlcpy(3) which is problematic on OS X. There
(and probably on other systems) strlcpy(3) is defined as a macro, re-declaring
it here will fail cause the macro expansion will generate an invalid function
name.
The declaration of strlcpy(3) is however useless cause it is never used in the
tool. Also upstream patch 2a021ae81c36f4281883a3195f7ce81504edf978 will remove
it. Using that patch here is overkill, cause it rewrites a lot of the
unifdef.c code.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
2015-01-08 19:30:36 -08:00
Bernhard Walle
1a6e9782e2 cc/gcc: Fix dynamic linker path for hard float libc
When compiling glibc 2.16 and gcc 4.7.4 with CT_ARCH_FLOAT="hard",
I end up in a dynamic linker called /lib/ld-linux-armhf.so.3, but
gcc compiles the binaries with an ELF interpreter /lib/ld-linux.so.3.
That doesn't work.

This patch (which is included in recent gcc version and also is included
in Linaro 4.7 versions) fixes the problem. I just stripped the ChangeLog

diff from the original commit.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
2015-01-08 19:16:36 -08:00
Bryan Hundven
b49e233167 binutils: Add binutils-2.25
This also updates the patches from 2.24.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-01-01 16:19:11 -08:00
Yann E. MORIN
de6b673394 libc/glibc: add patch to avoid caddr_t redefinition
Forward-ported from glibc-2.13.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 13:44:49 +02:00
Bryan Hundven
759e191c25 patches/experimental/gcc: Add patches for musl-lib support
The following are experimental patches for gcc that add support for
musl-libc.

I haven't been able to test every combination, but please test and let
me know on the mailing-list or on irc your results!

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: ditch the gcc-4.7 patches]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-08-31 22:00:02 +02:00
Bryan Hundven
838bf3a74b libc/musl: Remove 1.0.3 and 1.1.3. Add 1.0.4.
This change removes 1.0.3 and 1.1.3 and linker regession patches for
those versions.

We add 1.0.4, and a patch needed for gcc-4.9.x which defines
`max_align_t'.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2014-08-31 21:55:07 +02:00
Bryan Hundven
52260ccebb libc/musl: add musl-libc support
This patch adds initial support for musl-libc.

Musl-libc versions currently supported:
* 1.0.3 (Stable)
* 1.1.3 (Previous Mainline)
* 1.1.4 (Mainline)

Futher improvements are needed.
* gcc-4.9.x has issues (Might be fixed in musl-1.1.4).
* Multilib support is needed.
* Checks to make sure paths are correct.
* Move to 2-step gcc build. 3-step build is not necessary.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: removed the gcc musl patch, to be added later;
 removed dead code do_get_arch()]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-08-08 22:49:37 +02:00
Anton Leontiev
518d1dfc6e cc/gcc: Add 4.7.4 and 4.8.3
Signed-off-by: Anton Leontiev <aleontiev@elvees.com>
2014-07-03 23:05:17 +02:00
Thomas Petazzoni
348a67cceb patches/uClibc: add uClibc 0.9.33.2 patch to build with recent kernel headers
uClibc 0.9.33.2 has an issue related to __kernel_long and similar
types when building with kernel headers >= 3.4. This commit adds a
uClibc that fixes this issue, and allows building with recent kernel
headers.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2014-06-28 22:36:37 +02:00
Bernhard Walle
6ab70a6fb2 complibs/ppl: Fix build of ppl 0.11.2 with gcc 4.9
From: Roberto Bagnara <bagnara@cs.unipr.it>
  Date: Tue, 29 Apr 2014 19:51:43 +0000 (+0200)
  Subject: Added missing inclusions.  Use std::ptrdiff_t.
  X-Git-Url: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl%2Fppl.git;a=commitdiff;h=61d4e14dfd9f1121e9b4521dead5728b2424dd7c

  Added missing inclusions.  Use std::ptrdiff_t.
  (Thanks to Paulo Cesar Pereira de Andrade.)

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Message-Id: <5632a171e7c1dc4c0fb5.1399806148@euler.fritz.box>
Patchwork-Id: 347777
2014-05-11 13:00:36 +02:00
Bryan Hundven
9aa3e8163d patches/binutils: Update patches from 2.22 to 2.24
This updates the patches in 2.22 to 2.24.
Some removed as they were applied upstream.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <9fb77800ae1d5f14cbf5.1393055637@Bryans-MacBook-Pro.local>
Patchwork-Id: 323130
2014-02-21 23:53:40 -08:00
Yann E. MORIN"
55f1acba73 cc/gcc: fix the PR58595 patch
It applies manually with fuzz 2, but ct-ng does not accept any fuxx at all.

So, re-diff the patch so it applies cleanly.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-04-18 22:46:06 +02:00
Yann E. MORIN"
ab5fa8d8a3 cc/gcc: add some bug fixes to gcc 4.7.3 and 4.8.2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-04-17 18:17:12 +02:00
Daniel Zimmermann
4f4c387543 debug/ltrace: pump ltrace to version 0.7.3
pump ltrace to version 0.7.3
backport a patch from Peter Wu to silence warnings/errors in ltrace

Signed-off-by: '"Peter Wu" <lekensteyn@gmail.com>'
Signed-off-by: '"Daniel Zimmermann" <netzimme@gmail.com>'
[yann.morin.1998@free.fr: remove superfluous empty lines]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <8349c35b506aa79c4e69.1392845765@haus-VirtualBox>
Patchwork-Id: 322017
2014-02-19 22:36:03 +01:00
Daniel Schultze
2d0f9e757f libc/glibc: adding patch for glibc-2.10.1 for make-3.82 and later
Make 3.82 broke makefiles that used implicit and explicit rules on the
same line.

This was a undocumented feature that broke many makefiles.

This patch removes the offending rule and replaces it with two separate rules.

Signed-off-by: Daniel Schultze <kinglag@gmail.com>
[yann.morin.1998@free.fr: make it a crosstool-ng patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <CAEsx0Y-PDK7g6XanR=GRWT-8efMX=qAuB4Ub7wakF5sH=tQGxA@mail.gmail.com>
Patchwork-Id: 311876
2014-01-16 14:55:23 -08:00
Daniel Zimmermann
a584ff5dee cc/gcc: fix parallel build with gcc 4.8.0, 4.8.1 and 4.8.2
Fix the problem with parallel build on gcc 4.8.0, 4.8.1 and 4.8.2
See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57683

and

http://gcc.gnu.org/viewcvs?rev=205189&root=gcc&view=rev
Log:
2013-11-21  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

	PR bootstrap/57683
	Backport from mainline: r197467 and r198999.
	2013-04-03  Jeff Law  <law@redhat.com>

	* Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
	(lra-eliminations.o): Likewise.

	2013-05-16  Jeff Law  <law@redhat.com>

	* Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).

Signed-off-by: "Daniel Zimmermann" <netzimme@gmail.com>
Message-Id: <66398633eea949023e0d.1385290839@haus-VirtualBox>
Patchwork-Id: 293742
2013-11-22 00:34:49 +01:00
Daniel Zimmermann
a128e6fb54 debug/strace: pump version to 4.7 and 4.8
Pump version for strace to 4.7 and 4.8.
Add patch from strace mainline.


 Work around conflict between <sys/ptrace.h> and <linux/ptrace.h>

  Since glibc-2.18~39 <sys/ptrace.h> defines ptrace_peeksiginfo_args
  which collides with <linux/ptrace.h>.

   * configure.ac: Check for `struct ptrace_peeksiginfo_args' in
   <sys/ptrace.h>.
   * process.c: Work around potential conflict between <sys/ptrace.h>
   and <linux/ptrace.h> by redefining ptrace_peeksiginfo_args.
   * signal.c: Likewise.
   * syscall.c: Likewise.
   * util.c: Likewise.
   0b4060f61f/

Signed-off-by: "Daniel Zimmermann" <netzimme@gmail.com>
Message-Id: <67b082cf1cdc8276eb4a.1385366288@haus-VirtualBox>
Patchwork-Id: 293842
2013-11-25 08:56:55 +01:00
Bernhard Walle
b9adbff8e1 complibs/ppl: Fix build of ppl 0.11.2 with gmp 5.1 and later
The fix is backported from
http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commitdiff;h=9f843aecc23981aec6ed1eaa8be06e6786a47f0d.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Message-Id: <9a012bed87b494cfe0d4.1386503894@euler.fritz.box>
Patchwork-Id: 298789
2013-12-08 12:53:14 +01:00
Yann E. MORIN"
27847b8e14 libc/glibc: add latest version
Take two patches from upstream at the same time.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-10-07 00:16:20 +02:00
Yann E. MORIN"
41f0906518 complibs/ppl: add patch from upstream to fix data dir
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-09-30 20:06:16 +02:00
Yann E. MORIN"
c36dfeaacd complibs/ppl: fix build when local system has libgmp already installed
Basically, the ppl configure script wasn't properly setting
CFLAGS/CXXFLAGS/LDFLAGS to point at the ctng-built gmp, so ppl tried to
use the system gmp headers instead.

This patch fixes that for all PPL versions supported by crosstools-ng.

Signed-off-by:  Solomon Peachy <pizza@shaftnet.org>
[yann.morin.1998@free.fr: slightly touch the commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <20130715230656.GB23382@shaftnet.org>
Patchwork-Id: 259300
2013-07-24 19:11:18 +02:00
Yann E. MORIN"
e010ee5742 cc/gcc: add 4.7.3 and 4.6.4 bug-fixes releases
Bring the appropriate patches along, too.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-05-03 15:36:11 +00:00
Frederic Roussel"
8257a1a4b1 libc/glibc: add patch to fix build for PowerPC64.
For a PowerPC64 build, avoid erroneous inline optimization of initfini.s

Signed-off-by: "Frederic R. ROUSSEL" <fr.frasc@gmail.com>
Message-Id: <7585f649ad60b23c4a31.1360185227@x58>
Patchwork-Id: 218755
2013-02-06 13:11:46 -08:00
Richard Braun
fdac362da2 cc/gcc: add patch for 4.7.2
This patch fixes compilation of gcc when C++ is enabled and MMX is
available, but not SSE/SSE2/AVX.

Signed-off-by: Richard Braun <rbraun@sceen.net>
Message-Id: <20121126105642.GA12098@mail.sceen.net>
Patchwork-Id: 201648
2012-11-26 11:44:01 +01:00
Titus von Boxberg
062547b04d binutils/binutils: do not fwd declare struct stat (2.22).
For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>

Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <417a15d4277913841ddd.1353100974@tschetwerikow.boxberg.lan>
Patchwork-Id: 199733
2012-11-06 17:42:39 +01:00