Commit Graph

86 Commits

Author SHA1 Message Date
Joachim Nilsson
9b216274e5 glibc: Add glibc-2.24
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-11-12 19:49:26 +01:00
Kirill K. Smirnov
456e5d9f3e patches/glibc: Backport more patches for 2.19
Fixes build with gcc 5.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2016-09-15 03:25:47 +03:00
Kirill K. Smirnov
415483a288 patches/glibc: Backport more patches for 2.18
These new patches fix build with make >= 4.0 and gcc 5.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2016-09-15 02:56:32 +03:00
Kirill K. Smirnov
429b3e8846 patches: remove obsolete glibc patches
Glibc prior to 2.18, linuxthreads and ports are not supported.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2016-09-15 01:02:54 +03:00
Yogesh Sharma
a1b4ec3b17 glibc: fixed compile error
Fixed compile error with gcc 6.1 and glibc 2.23 involving missing parenthesis
with patch from glibc git repository, commit df1cf48777fe4cd81ad7fb09ecbe5b31432b7c1c.

Signed-off-by: Yogesh Sharma <YogeshASharma@gmail.com>
2016-09-07 10:16:52 -04:00
Reser, Ben
9c7a41ea64 Add patch for glibc 2.22 for CVE-2015-7547.
This resolves a vulnerability related to getaddrinfo().
2016-03-04 15:36:19 -08:00
Bryan Hundven
cb60114599 glibc: port glibc patch from 2.22 to 2.23
Only one patch ported forward from 2.22:

 * 100-Cygwin-doesnt-have-stat64.patch

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-23 10:38:00 -08:00
Ray Donnelly
f9968501ee glibc: Cygwin doesn't have stat64
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13 02:17:45 +00:00
Alexey Neyman
05b7b11ec4 Pick up a fix for glibc-2.22 on sparc32. 2015-10-15 17:35:18 -07:00
Philipp Kirchhofer
8442cd7e02 Fix building glibc 2.17 with gcc 5.1+
Backport from glibc 2.20

Fixes error "In function _Unwind_Resume: undefined reference to libgcc_s_resume"
2015-09-15 16:31:32 +02:00
Konstantin Käfer
71943aae98 patch glibc 2.11's configure script to support Make 4 2015-07-14 18:31:31 +02: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
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
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
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
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
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
Jonathan Liu
3a0575282f libc/glibc: add patches for glibc 2.14.1
Signed-off-by: Jonathan Liu <net147@gmail.com>
2012-08-05 00:33:27 +10:00
Yann E. MORIN"
6cf1dab940 libc/glibc: add 2.13
Patchset provided by "Ioannis E. Venetis" <venetis@mail.capsl.udel.edu>
  http://sourceware.org/ml/crossgcc/2011-04/msg00072.html
  http://sourceware.org/ml/crossgcc/2011-04/msg00073.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-03 00:19:56 +02:00
Yann E. MORIN"
0edbdfd24c libc/glibc: update patchset, add ports patchset
Patchset provided by "Ioannis E. Venetis" <venetis@mail.capsl.udel.edu>
  http://sourceware.org/ml/crossgcc/2011-04/msg00072.html
  http://sourceware.org/ml/crossgcc/2011-04/msg00073.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-03 00:20:04 +02:00
Yann E. MORIN"
177a2b029c libc/glibc: remove duplicate patch
Remove a now obsolete patch for glibc-2.9 (a better one has
just been contributed by Esben).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-04-06 21:34:22 +02:00
Esben Haabendal
42e908c44b libc/glibc: workaround for autoconf'ed define of caddr_t
When building canadian cross compiler, I have some trouble with
configure defining caddr_t as a macro, like:
  #define caddr_t char *

When combined with the types.h where caddr_t is protected together
with daddr_t, the typedef of caddr_t breaks.

This patch works around it by protecting the caddr_t typedef
specifically.

I am uncertain as to the real cause and solution to this :-(

Signed-off-by: Esben Haabendal <eha@dev.doredevelopment.dk>
2011-04-06 20:15:23 +02:00
Yann E. MORIN"
c0800dc7b5 libc/glibc: fix cross-compiling to i686
In OE-lite we use the attached patch for building i686 cross compilers.
Thanks to Khem Raj for original patch :-)

At the same time, remove the corresponding patch that was in
the ports patchset.

CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Esben Haabendal <eha@dev.doredevelopment.dk>
[yann.morin.1998@anciens.enib.fr: remove patch from ports]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-04-06 20:15:40 +02:00
Yann E. MORIN"
6568c1a39a libc-glibc: remove 2.3.6
This is an obsolete version which is no longer used by any sample (the only
user, the ia64 sample, has been removed).

It also makes the code path a bit complex, with twists just to accomodate
that version. Removing the version will make those twists go away, and
will ease commonalisation of glibc and eglibc in the future (hopefully!).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-01-03 23:40:22 +01:00
Ilya A. Volynets-Evenbakh"
de889264bb libc/glibc: fix glibc-2.10.1 patchset
There was a missing '#" to a '#define' line.
2010-10-31 20:17:30 +01:00
Titus von Boxberg
63967a4141 libc/glibc: repair debugging with gdb (glibc 2.9)
Without this patch, crosstool-ng-built glibc-2.9 prevents
debugging any exeutable with gdb.
gdb says:
[Thread debugging using libthread_db enabled]
find_new_threads_callback: cannot get thread info: generic error
See also https://bugzilla.redhat.com/show_bug.cgi?id=487212
for a discussion of the bug and the solution.
2010-08-21 16:46:24 +02:00
Arnaud Lacombe
218438ee92 libc/glibc: let glibc 3.3.6 link correctly
From http://sourceware.org/git/?p=glibc.git;a=commit;f=elf/Makefile;h=7c8a67320e26b8c11108bf0a3410d3aef9cf3486

Author: Ulrich Drepper <drepper@redhat.com>:
Commit log:
* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
newer linker scripts.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
2010-08-05 17:59:50 +02:00
Yann E. MORIN"
c0927b7ac6 libc/glibc: fix as/ld checks against recent binutils
Backported from:
  http://sourceware.org/ml/libc-alpha/2009-09/msg00024.html

Thanks to Khem RAJ for pointing to this fix:
  http://sourceware.org/ml/crossgcc/2010-05/msg00033.html
2010-05-18 23:54:55 +02:00
Yann E. MORIN"
d747e1a887 libc/glibc: add patch to ports-2.9 to fix sjlj from ARM FPU
As discussed there: http://sourceware.org/bugzilla/show_bug.cgi?id=9678#c4

Reported by: Sasha Sirotkin <buildroot@browserseal.com>
2010-03-30 22:30:41 +02:00
Yann E. MORIN"
d89dc15731 libc/glibc: add patch to fix binutils version check
Older glibces were not ready to handle binutils >=2.20.
Fix that, and the forseeable future.
2010-03-09 13:20:34 +01:00
Yann E. MORIN"
4fd7762454 libc/glibc: update 2.10.1 patchset
According to: http://sourceware.org/ml/crossgcc/2009-11/msg00109.html
update the patchset for correct Alpha build.
2009-11-25 21:47:51 +01:00
Frederic Roussel
69e0647a02 patches/glibc: allows glibc2.9 to be compiled with binutils 2.20
the configure script had to be modified to accept as/ld at versions greater
than 2.19
Signed-off-by: Frederic Roussel <fr.frasc@gmail.com>
2009-11-25 00:10:42 -08:00
Yann E. MORIN"
4b173045e9 libc/glibc: add 2.10.1
Woo... It seems the glibc guys finally decided that tarballs
were not deprecated, in fact.

The patchset was vampirised from Gentoo (kudos, guys!), and
applies to glibc+ports, so that's why it's been added as a
patchset against ports, not against glibc.
2009-11-13 21:37:18 +01:00
Yann E. MORIN"
37f6f7ec43 /devel/gcc-4.4:
- make glibc-2.9 build with gcc-4.4.0.

 -------- diffstat follows --------
 /devel/gcc-4.4/patches/glibc/2.9/570-debug-readlink_chk-readklinkat_chk.patch |   24    24     0     0 ++++++++++
 /devel/gcc-4.4/patches/glibc/2.9/560-syslog.patch                             |   12    12     0     0 +++++
 2 files changed, 36 insertions(+)
2009-06-01 09:23:23 +00:00
Yann E. MORIN"
f7acc7992c Add two new patches by Nye LIU, to fix building
glibc-2.9 and eglibc-2_9 for PowerPC. See:
http://sourceware.org/ml/crossgcc/2009-05/msg00014.html

 -------- diffstat follows --------
 /trunk/patches/glibc/2.9/550-2.9-elf-begin.patch       |   29    29     0     0 ++++++++++++++++++++++++
 /trunk/patches/eglibc/2_9/100-binutils-elf-begin.patch |   24    24     0     0 ++++++++++++++++++++
 2 files changed, 53 insertions(+)
2009-05-07 19:24:23 +00:00
Yann E. MORIN"
f31a1dc035 Update the alphaev56-unknown-linux-gnu sample, as per:
http://sourceware.org/ml/crossgcc/2009-05/msg00009.html

 -------- diffstat follows --------
 /trunk/patches/glibc/2.9/480-alpha-glibc-2.8-cache-shape.patch |    3     1     2     0 -
 /trunk/patches/glibc/2.9/540-alpha-atfcts.patch                |   12    12     0     0 ++++
 /trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config    |   50    15    35     0 +++++-----------
 3 files changed, 28 insertions(+), 37 deletions(-)
2009-05-05 18:22:33 +00:00
Yann E. MORIN"
458e7dc8c5 Add a patch against glibc-2.7 to fix build failures
with the latest binutils-2.19.50.* snapshots.
From: http://sourceware.org/ml/crossgcc/2009-04/msg00062.html

 -------- diffstat follows --------
 /trunk/patches/glibc/2.7/300-binutils-_begin.patch |  190   190     0     0 ++++++++++++++++++++++++++++
 1 file changed, 190 insertions(+)
2009-04-27 17:51:48 +00:00
Yann E. MORIN"
008b7a4585 Update (fix) a glibc-ports-2.9 patch.
/trunk/patches/glibc/ports-2.9/100-arm_linux_tls.patch |    6     3     3     0 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
2009-03-28 22:36:27 +00:00
Yann E. MORIN"
c72d8c3307 In http://sourceware.org/ml/crossgcc/2009-03/msg00078.html,
Nye Liu <nyet@mrv.com> says:
  looks like same patch from
  http://sourceware.org/ml/crossgcc/2008-10/msg00067.html
  (glibc/2.7/290-powerpc-8xx-CPU15-errata.patch)
  applies to 2.9
2009-03-28 22:21:33 +00:00
Yann E. MORIN"
aeddc2708d Rename patch dir for glibc-2.9: version string is 2.9, not 2_9. 2009-03-28 13:34:41 +00:00
Yann E. MORIN"
a4d865512c Add two patches agains glibc-2_9 to (try to) build for SuperH.
/trunk/patches/glibc/2_9/510-sh-no-asm-user-header.patch |   70    70     0     0 ++++++++++++++++++++++
 /trunk/patches/glibc/2_9/520-sh-no-asm-elf-header.patch  |   27    27     0     0 ++++++++
 2 files changed, 97 insertions(+)
2009-03-08 11:16:57 +00:00
Yann E. MORIN"
f049d64a0b On 20090220.0418+0100, Hugo Vincent <hugo.vincent@grcnz.com> wrote:
I'm using CTNG for some embedded Linux work on an ARM926ej-s, and when
  updating to glibc 2_9, I needed to use the attached patch to get it to
  build cleanly.

 /trunk/patches/glibc/ports-2_9/100-arm_linux_tls.patch |   14    14     0     0 ++++++++++++++
 1 file changed, 14 insertions(+)
2009-02-23 22:31:07 +00:00
Yann E. MORIN"
b60a8806c6 Add a patchset for glibc 2_9. Vampirised from the gentoo repository.
/trunk/patches/glibc/2_9/500-ppc-glibc-2.9-atomic.patch                                            |  414   414     0     0 ++++++++++
 /trunk/patches/glibc/2_9/140-regex-BZ9697.patch                                                    |  111   111     0     0 +++
 /trunk/patches/glibc/2_9/190-queue-header-updates.patch                                            |   89    89     0     0 ++
 /trunk/patches/glibc/2_9/370-hppa_glibc-2.7-hppa-nptl-carlos.patch                                 |  249   249     0     0 ++++++
 /trunk/patches/glibc/2_9/450-alpha-glibc-2.5-no-page-header.patch                                  |   32    32     0     0 +
 /trunk/patches/glibc/2_9/270-ldbl-nexttowardf.patch                                                |   68    68     0     0 ++
 /trunk/patches/glibc/2_9/330-2.3.3-china.patch                                                     |   35    35     0     0 +
 /trunk/patches/glibc/2_9/340-new-valencian-locale.patch                                            |  120   120     0     0 +++
 /trunk/patches/glibc/2_9/410-2.9-fnmatch.patch                                                     |   64    64     0     0 ++
 /trunk/patches/glibc/2_9/350-2.4-undefine-__i686.patch                                             |   47    47     0     0 +
 /trunk/patches/glibc/2_9/160-i386-x86_64-revert-clone-cfi.patch                                    |   53    53     0     0 +
 /trunk/patches/glibc/2_9/420-dont-build-timezone.patch                                             |   19    19     0     0 +
 /trunk/patches/glibc/2_9/150-regex-BZ697.patch                                                     |   28    28     0     0 +
 /trunk/patches/glibc/2_9/290-no-inline-gmon.patch                                                  |   38    38     0     0 +
 /trunk/patches/glibc/2_9/280-section-comments.patch                                                |   29    29     0     0 +
 /trunk/patches/glibc/2_9/180-math-tests.patch                                                      |   72    72     0     0 ++
 /trunk/patches/glibc/2_9/120-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch |   35    35     0     0 +
 /trunk/patches/glibc/2_9/250-resolv-dynamic.patch                                                  |   44    44     0     0 +
 /trunk/patches/glibc/2_9/300-2.9-check_native-headers.patch                                        |   22    22     0     0 +
 /trunk/patches/glibc/2_9/310-2.3.6-fix-pr631.patch                                                 |   50    50     0     0 +
 /trunk/patches/glibc/2_9/130-add_prio-macros.patch                                                 |   26    26     0     0 +
 /trunk/patches/glibc/2_9/260-fadvise64_64.patch                                                    |   30    30     0     0 +
 /trunk/patches/glibc/2_9/440-alpha-glibc-2.4-xstat.patch                                           |  249   249     0     0 ++++++
 /trunk/patches/glibc/2_9/170-2.10-dns-no-gethostbyname4.patch                                      |   35    35     0     0 +
 /trunk/patches/glibc/2_9/230-2.3.3-localedef-fix-trampoline.patch                                  |   74    74     0     0 ++
 /trunk/patches/glibc/2_9/360-2.8-nscd-one-fork.patch                                               |   45    45     0     0 +
 /trunk/patches/glibc/2_9/480-alpha-glibc-2.8-cache-shape.patch                                     |   18    18     0     0 +
 /trunk/patches/glibc/2_9/210-2.9-strlen-hack.patch                                                 |  109   109     0     0 +++
 /trunk/patches/glibc/2_9/320-2.9-assume-pipe2.patch                                                |   59    59     0     0 +
 /trunk/patches/glibc/2_9/100-ssp-compat.patch                                                      |  193   193     0     0 +++++
 /trunk/patches/glibc/2_9/110-respect-env-CPPFLAGS.patch                                            |   30    30     0     0 +
 /trunk/patches/glibc/2_9/220-manual-no-perl.patch                                                  |   29    29     0     0 +
 /trunk/patches/glibc/2_9/390-2.3.3_pre20040117-pt_pax.patch                                        |   35    35     0     0 +
 /trunk/patches/glibc/2_9/460-alpha-glibc-2.5-no-asm-elf-header.patch                               |   38    38     0     0 +
 /trunk/patches/glibc/2_9/400-tests-sandbox-libdl-paths.patch                                       |  198   198     0     0 +++++
 /trunk/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch                                               |   23    23     0     0 +
 /trunk/patches/glibc/2_9/200-awk-in-C-locale.patch                                                 |   23    23     0     0 +
 /trunk/patches/glibc/2_9/430-2.7-cross-compile-nptl.patch                                          |   57    57     0     0 +
 /trunk/patches/glibc/2_9/380-2.3.6-dl_execstack-PaX-support.patch                                  |   71    71     0     0 ++
 /trunk/patches/glibc/2_9/490-ptr-mangling.patch                                                    |  114   114     0     0 +++
 /trunk/patches/glibc/2_9/470-alpha-glibc-2.8-creat.patch                                           |   19    19     0     0 +
 41 files changed, 3094 insertions(+)
2009-02-02 22:00:18 +00:00
Yann E. MORIN"
991a5070e5 Backport patch for glibc-2.6.1 to glibc-2.6:
- fixes glibc-2.6.1 build on OpenSOLARIS.
2009-01-20 18:55:46 +00:00
Yann E. MORIN"
96ec8bee12 Add a glibc-2.6.1 patch from Thomas Jourdan <tjourdan@neuf.fr>:
- fixes glibc-2.6.1 build on OpenSOLARIS.

 /trunk/patches/glibc/2.6.1/220-cross-posix_makefile.patch |   65    65     0     0 +++++++++++++++++++++
 1 file changed, 65 insertions(+)
2009-01-12 19:04:41 +00:00
Yann E. MORIN"
d31396bc23 Finally enable the PPC-8xx memset workaround, by Nye Liu.
http://sourceware.org/ml/crossgcc/2008-10/msg00094.html

 /trunk/scripts/build/libc/glibc.sh                          |    9     9     0     0 +
 /trunk/patches/glibc/2.7/290-powerpc-8xx-CPU15-errata.patch |   22    19     3     0 +
 /trunk/samples/powerpc-860-linux-gnu/crosstool.config       |  344   344     0     0 +++++++++++++++++++
 /trunk/samples/powerpc-860-linux-gnu/reported.by            |    3     3     0     0 +
 4 files changed, 375 insertions(+), 3 deletions(-)
2008-10-29 21:20:23 +00:00
Yann E. MORIN"
1d36c322bb Fix building with newer gcc that have the 'fix-include' /feature/.
/trunk/patches/glibc/2.3.6/290-gcc-4.3-include.patch |   40    40     0     0 ++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
2008-10-28 09:46:48 +00:00
Yann E. MORIN"
5b581f678b The glibc-2.7 profs fix for SuperH was missing very important parts...
/trunk/patches/glibc/2.7/270-sh-fix-procfs.patch |   38    32     6     0 ++++++++++++++++++++++++++++++++------
 1 file changed, 32 insertions(+), 6 deletions(-)
2008-10-24 11:14:31 +00:00