summaryrefslogtreecommitdiff
path: root/patches
AgeCommit message (Collapse)AuthorFilesLines
2016-04-02Unbreak *-uclibc with native GDB.Alexey Neyman1-0/+12
Currently, native GDB 7.11 fails to build with uClibc-ng due to undefined reference to _obstack_free. On IRC [http://crosstool-ng.osuosl.org/download/ibot-logs/2016-02-28.html], it has been suggested to disable obstack in uClibc configuration. I think it is a workaround rather than a fix: if another library/app needs obstack, this leaves no viable configuration. IMO, if uClibc seeks to mimic the glibc API, it should also provide _obstack_free call (an alias for which it already has, even though commented out). Signed-off-by: Alexey Neyman <stilor@att.net>
2016-04-02Unbreak powerpc-unknown-linux-uclibc.Alexey Neyman1-0/+13
There is invalid assembly in dmalloc for PowerPC. The issue is that 'stw' expects a memory operand, and =g constraint allows both registers and memory. Newer GCC tends to choose register even at -O0, resulting in invalid assembly. Instead, force a register constraint in 'mflr' and let GCC decide if it wants to store it into memory at all. Reported this upstream. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-03-15gcc: backport fixes that preserve FLAGS_FOR_TARGETMax Filippov4-0/+106
CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET are rewritten in gcc-4.8.x and gcc-4.9.x, so libstdc++ does not get any flags passed to gcc configure. Backport fixes for config/mt-gnu and config/mt-ospace that preserve these flags. With these fixes libstdc++ gets built with flags specified in CT_TARGET_CFLAGS. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-03-04Add patch for glibc 2.22 for CVE-2015-7547.Reser, Ben1-0/+551
This resolves a vulnerability related to getaddrinfo().
2016-02-25gdb: Help gnulib determine uClibc gettimeofday() is OKJoachim Nilsson1-0/+20
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-02-24gdb: Add support for v7.11, port patches from v7.10.1 that applyJoachim Nilsson3-0/+94
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-02-23glibc: port glibc patch from 2.22 to 2.23Bryan Hundven1-0/+13
Only one patch ported forward from 2.22: * 100-Cygwin-doesnt-have-stat64.patch Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-17binutils: fix .init/.fini literals moving in xtensa gasMax Filippov4-0/+439
Despite the documentation and the comment in xtensa_move_literals, in the presence of --text-section-literals and --auto-litpools literals are moved from the separate literal sections into .init and .fini, because the check in the xtensa_move_literals is incorrect. This fixes build errors seen with projects that have .init/.fini and use text-section-literals. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-06Merge pull request #335 from jcmvbkbc/xtensa-binutils-loc-fixBryan Hundven4-0/+290
binutils: fix .loc handling in xtensa gas
2016-02-05binutils: fix .loc handling in xtensa gasMax Filippov4-0/+290
Binutils change 1058c7532d0b "Use signed data type for R_XTENSA_DIFF* relocation offsets." changed signedness of BFD_RELOC_XTENSA_DIFF* relocations substituted for BFD_RELOC_*. This made it impossible to encode arbitrary 8-, 16- and 32-bit values, which broke e.g. debug info encoding by .loc directive. Revert this part and add test. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-05gdb: Update patches for gdb-7.10.1Bryan Hundven4-0/+133
Notable here is the removal of 10-setns-handling.patch, which is now upstream. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-05binutils: Update patches for binutils-2.26Bryan Hundven10-0/+626
This updates patches for 2.26. Most notably, the removal of the xtensa patches which seem to be upstream in binutils now. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-24patches/binutils: wcsncasecmp is provided by OSX >= 10.7Kasumi Hanazuki1-1/+1
OSX SDK has a declaration for `wcsncasecmp` since 10.7, which conflicts with the definition provided by the patch for binutils. Signed-off-by: Kasumi Fukuda <kasumi@rollingapple.net>
2016-01-06Merge pull request #309 from bhundven/remove_old_binutils_versionsBryan Hundven94-3286/+6643
Remove old binutils versions
2016-01-03POSIX: Fix GCC 5+ plugin build failure on CygwinRay Donnelly1-0/+11
Cygwin follows POSIX IEEE Std 1003.1, 2004 Edition spec for the select() fuction as described at: http://pubs.opengroup.org/onlinepubs/009695399/functions/pselect.html .. so we must #include <sys/select.h> for the declaration. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03Cygwin + MinGW-w64: GCC 5+ plugin supportRay Donnelly1-0/+160
Define PICFLAG, UNDEFINEDPREAMBLE and UNDEFINEDCODE to nothing since Windows doesn't have -fPIC (GCC warns) and can't handle undefined variable references (which are not needed anyway). Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03patches/binutils: Sync patches with buildrootBryan Hundven33-0/+6722
The buildroot patches have xtensa for the supported versions of binutils we use, and a few others that might help us keep away from host polution. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03patches/binutils: Remove old patches for binutilsBryan Hundven65-3365/+0
Since we removed older binutils versions, remove patches as well. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03gcc: Update gcc 5 to 5.3.0Bryan Hundven24-14/+29
Reported-by: Freddie Chopin <freddie.chopin@gmail.com> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-30PPL: Remove support for PPL and CLooG/PPLBryan Hundven19-783/+0
Now that versions of gcc that required PPL are no longer supported ( >= gcc-4.5.x AND <= gcc-4.7.x ) ...we no longer require PPL or CLooG/PPL. This commit: * Removes PPL * Removes CLooG/PPL * Updates the documentation * Updates build script for CLooG and GCC * Removes PPL and CLooG/PPL from scripts/addToolVersion.sh and scripts/showSamples.sh * Adds ISL to scripts/addToolVersion.sh and scripts/showSamples.sh I know that sounds like a lot for one commit, but it was all kind of inter-tangled. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-30gcc: remove patches for removed gcc versionsBryan Hundven93-6970/+0
This commit simply removes the patches for gcc versions that are no longer supported. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-26binutils: add patch that fixes mac os x gold buildBryan Hundven1-0/+26
https://sourceware.org/bugzilla/show_bug.cgi?id=19281 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-22darwin-host: Three build fixes for binutils 2.25{,.1}Ray Donnelly4-0/+176
1. Need to include <string> not <cstring> in gold's binary.cc 2. wcsncasecmp isn't always defined in Mac SDK 3. PTHREAD_ONCE_INIT is {0x30B1BCBA, {0}}, so can't be trivially assigned in an intializer list. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-16ncurses: bump to ncurses-6.0Bryan Hundven13-39/+95758
This commit removes ncurses-5.9 and adds 6.0. I also provide the stable patch updates in patches/ncurses/6.0. I have also added an experimental toggle for enabling the new ABI support. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-15uClibc-ng: Update to uClibc-ng-1.0.9Bryan Hundven1-34/+0
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13Merge pull request #253 from jcmvbkbc/xtensa-for-mainline-20151113Bryan Hundven13-0/+3246
Add support for Xtensa architecture
2015-11-13file modes: Set files to be non-executableBryan Hundven4-0/+0
I was going to start doing some autoconf work, and noticed that configure.in was executable. Then I noticed Makefile.in was executable. o.O So, I ran ```find . -type f -executable``` and found a bunch of files that shouldn't be set executable. This commit makes them normal files again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13gdb: add xtensa-specific patches for 7.10Max Filippov3-0/+105
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13gcc: add xtensa-specific patches for 5.2.0Max Filippov1-0/+64
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13binutils: add xtensa-specific patches for 2.25.1Max Filippov9-0/+3077
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13Merge pull request #239 from diorcety-ctng/cc-cygwin-mingw-linuxBryan Hundven10-0/+670
Canadian cross build = x86_64 Cygwin host = x86_64 MinGW_W64 target = x86_64 GNU/Linux
2015-11-13gcc: Sync patches with buildrootBryan Hundven58-112/+5062
This commit sync gcc patches with buildroot. I found this useful for fixing a few uClibc related issues. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13libtool: Update to 2.4.6 and patch for CygwinRay Donnelly1-0/+12
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13Add gettext and libiconv as companion libsRay Donnelly4-0/+502
.. they're needed for the RPC generation in glibc on both Cygwin and MinGW-w64. Neither are built on GNU/Linux and iconv is not built on Darwin. Two patches for gettext are needed, one so that -O0 works and one so that static builds can be made. They can take a good while to build, so if not needed for_host or for_build then they are not built. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13glibc: Cygwin doesn't have stat64Ray Donnelly1-0/+13
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13MinGW-w64: winpthreads doesn't have pthread_mutexattr_settypeRay Donnelly1-0/+11
It's only used as a hint, so excluding it shouldn't cause any problems. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13Cygwin: Define R_X86_64_JUMP_SLOTRay Donnelly1-0/+16
This should be upstreamed to Cygwin ideally. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13binutils: Don't link to libfl as it's unnecessaryRay Donnelly1-0/+102
AM_PROG_LEX sets this for some weird reason; it should look for a program only and not a library. Then later it gets linked to ar, ranlib, dlltool, windres, windmc and itbl-test despite nothing in the code #include'ing FlexLexer.h This isn't a big deal but it did cause a build failure on Cygwin as it triggered a bug with their flex package dependencies which I reported at: https://www.cygwin.com/ml/cygwin/2015-10/msg00433.html Arguably I should remove all traces of LIBLEX in each Makefile.am instead? Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13binutils: Fix typoRay Donnelly1-0/+14
pthread_mutextattr_settype -> pthread_mutexattr_settype .. I'm not sure why this didn't fail everywhere, unless no one has tried to build gold? Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13uClibc: Add support for uClibc-ngBryan Hundven1-0/+34
This commit adds uClibc-ng 1.0.8. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-11uClibc: Reduce supported versionsBryan Hundven61-3888/+0
This commit reduces the number of supported versions to: * 0.9.33.2 * custom location Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-10Merge pull request #242 from stilor/fix-uclibcBryan Hundven1-0/+393
Restore uClibc-based samples.
2015-11-10blackfin: Remove blackfin supportBryan Hundven1-32/+0
This commit removes blackfin support. I'm open to re-adding blackfin after crosstool-1.23.0 is released, but it is currently too difficult to port forward to newer versions of gcc and uclibc. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-09Restore uClibc samples.Alexey Neyman1-0/+393
Commit 1a25115a1851d3defdf4d37825d8a291be078e53 deleted non-GCC related files, including the patch for uClibc to compile with Linux kernels after 3.4. uClibc 0.9.30 patches are not restored by this change (0.9.30 is broken with recent kernels for multiple other breakages in addition to that; if not retired, it needs to be fixed properly). Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-31gcc: Support only the latest branch releases of gccBryan Hundven546-165782/+0
This change, as per #222, reduces the number of supported releases of gcc to the latest branch releases. I noticed while doing this work that gcc-4.5.4 was never added, so I moved patches for gcc-4.5.3 to 4.5.4 and updated the bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed upstream in the 4.5.4 release, so this patch is omitted. I also bumped the avr sample to 4.9.3 from 4.9.2. With the addition of gcc-5.x, the gcc release team now releases the major.minor.0 versions, while updates to the branch are available in svn/git. We'll address that when we get to issue #219. This change just removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later. This is the first of two part changes, as mentioned in #222. This change is slated for release in 1.22.0. The next change will be slated for 1.23.0, and will limit gcc versions to what is on https://gcc.gnu.org under "Release Series and Status", which is currently 4.9.3 and 5.2.0, although I will also support the previous supported version. In this example that would be 4.8.5. Last, but not least, this change also retires AVR32 support. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-22musl-libc: backport gcc-6 musl support, add gdb and strace patchesBryan Hundven12-0/+906
This gets gcc and friends working with musl-libc. GDB and Strace patches come from openwrt. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-20Merge pull request #200 from stilor/arm-unwind-uclibcBryan Hundven1-0/+23
Fix link error in arm/uclibc with GCC 5.x
2015-10-16Pick up a fix for glibc-2.22 on sparc32.Alexey Neyman1-0/+21
2015-10-16Fix arm/uclibc; see the description in the patch.Alexey Neyman1-0/+23
This should ideally be upstreamed to uclibc maintainers, but with the last release more than 3 years ago, I wouldn't hold my breath for a fix being released any time soon.
2015-09-15Merge pull request #178 from pkirchhofer/fix-glibc-with-new-gccBryan Hundven1-0/+54
Fix building glibc 2.17 with gcc 5.1+