Commit Graph

377 Commits

Author SHA1 Message Date
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
Yogesh Sharma
0ec2166f26 gcc: Migrated patches from 5.3.0 to 6.1.0
Signed-off-by: Yogesh Sharma <ysharm01@harris.com>
2016-09-07 10:15:56 -04:00
Yogesh Sharma
2f7adae8a7 duma: Fixed gcc 6.1.0 compile error
Fixed compile error for DUMA 2.5.15 due to different function prototypes
for new operator in c++03 vs c++11

Signed-off-by: Yogesh Sharma <ysharm01@harris.com>
2016-09-07 10:15:56 -04:00
kozyilmaz
deaa4b8ded xgcc: Update gcc 5 to 5.4.0
patches synced with buildroot trunk and:
110-xtensa-implement-trap-pattern.patch (copied to 5.4.0 patches)
130-build_gcc-5_with_gcc-6.patch (upstreamed in 5.4.0, dropped)
370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch (copied to 5.4.0 patches)
380-gcc-plugin-POSIX-include-sys-select-h.patch (copied to 5.4.0 patches)
910-nios2-bad-multilib-default.patch (copied to 5.4.0 patches)
2016-08-24 11:33:24 +03:00
Alexey Neyman
509cd85b12 nios2: bad option reported in multilib_defaults
multilib_defaults refers to -EL/-EB, but this target uses -mel/-meb and
does not recognize -EL/-EB.

Signed-off-by: Alexey Neyman <stilor@att.net>
2016-08-23 11:00:27 -07:00
Bryan Hundven
5a5fcbe148 patches/gcc: Backport fix for building gcc-5 with gcc-6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959

...was observed while trying to build gcc-5.3.0 on latest (at the time
of this change) archlinux using gcc-6.1.1.

This patch fixes the issue.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-05-13 11:54:54 -07:00
Bryan Hundven
cd39285ff8 Merge pull request #373 from stilor/unbreak-ppc-uclibc
Unbreak samples
2016-05-12 20:34:42 -07:00
Bryan Hundven
176594e4a1 Merge pull request #366 from CDKGlobal/glibc-getaddrinfo
Add patch for glibc 2.22 for CVE-2015-7547.
2016-05-12 11:24:13 -07:00
Alexey Neyman
2c7f7cf847 Unbreak *-uclibc with native GDB.
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-01 18:15:39 -07:00
Alexey Neyman
85af584872 Unbreak powerpc-unknown-linux-uclibc.
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-04-01 18:15:39 -07:00
Max Filippov
8a65d08b27 gcc: backport fixes that preserve FLAGS_FOR_TARGET
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-15 17:14:16 +03: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
Joachim Nilsson
f9a704bd44 gdb: Help gnulib determine uClibc gettimeofday() is OK
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-02-25 18:37:22 +01:00
Joachim Nilsson
77d7a0f927 gdb: Add support for v7.11, port patches from v7.10.1 that apply
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-02-24 23:00:23 +01: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
Max Filippov
c842c9fd31 binutils: fix .init/.fini literals moving in xtensa gas
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-18 02:37:02 +03:00
Bryan Hundven
2741a568a6 Merge pull request #335 from jcmvbkbc/xtensa-binutils-loc-fix
binutils: fix .loc handling in xtensa gas
2016-02-05 19:46:54 -08:00
Max Filippov
b1459d123f binutils: fix .loc handling in xtensa gas
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-06 01:19:45 +03:00
Bryan Hundven
1edc845660 gdb: Update patches for gdb-7.10.1
Notable here is the removal of 10-setns-handling.patch, which is now
upstream.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-05 03:27:43 -08:00
Bryan Hundven
46c9c486d0 binutils: Update patches for binutils-2.26
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-02-04 23:50:19 -08:00
Kasumi Hanazuki
1ced27e223 patches/binutils: wcsncasecmp is provided by OSX >= 10.7
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-24 15:09:31 +09:00
Bryan Hundven
ce74282be4 Merge pull request #309 from bhundven/remove_old_binutils_versions
Remove old binutils versions
2016-01-05 21:45:48 -08:00
Ray Donnelly
9b4b569741 POSIX: Fix GCC 5+ plugin build failure on Cygwin
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-03 15:52:52 +00:00
Ray Donnelly
29f03e3295 Cygwin + MinGW-w64: GCC 5+ plugin support
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-03 15:52:26 +00:00
Bryan Hundven
91520c2b36 patches/binutils: Sync patches with buildroot
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-03 03:05:27 -08:00
Bryan Hundven
ba8713947e patches/binutils: Remove old patches for binutils
Since we removed older binutils versions, remove patches as well.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03 01:22:02 -08:00
Bryan Hundven
8f4019e693 gcc: Update gcc 5 to 5.3.0
Reported-by: Freddie Chopin <freddie.chopin@gmail.com>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-02 18:24:41 -08:00
Bryan Hundven
0e0ecc8bcf PPL: Remove support for PPL and CLooG/PPL
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-29 17:36:58 -08:00
Bryan Hundven
c0bd1bbc4c gcc: remove patches for removed gcc versions
This commit simply removes the patches for gcc versions that are no
longer supported.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-29 17:36:58 -08:00
Bryan Hundven
6484adb13f binutils: add patch that fixes mac os x gold build
https://sourceware.org/bugzilla/show_bug.cgi?id=19281

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-26 09:38:05 -08:00
Ray Donnelly
f001b0605e darwin-host: Three build fixes for binutils 2.25{,.1}
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-22 14:38:22 +00:00
Bryan Hundven
20f69f3240 ncurses: bump to ncurses-6.0
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-16 13:35:56 -08:00
Bryan Hundven
c9704c6683 uClibc-ng: Update to uClibc-ng-1.0.9
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-15 09:41:30 -08:00
Bryan Hundven
e78251b751 Merge pull request #253 from jcmvbkbc/xtensa-for-mainline-20151113
Add support for Xtensa architecture
2015-11-13 01:47:08 -08:00
Bryan Hundven
e4bb360748 file modes: Set files to be non-executable
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-12 23:18:04 -08:00
Max Filippov
6717dbfd3f gdb: add xtensa-specific patches for 7.10
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13 09:08:54 +03:00
Max Filippov
9af5ff74ef gcc: add xtensa-specific patches for 5.2.0
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13 09:08:53 +03:00
Max Filippov
3a659bb198 binutils: add xtensa-specific patches for 2.25.1
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13 09:08:53 +03:00
Bryan Hundven
57de8dcf22 Merge pull request #239 from diorcety-ctng/cc-cygwin-mingw-linux
Canadian cross build = x86_64 Cygwin host = x86_64 MinGW_W64 target = x86_64 GNU/Linux
2015-11-12 21:50:31 -08:00
Bryan Hundven
5e16edbea8 gcc: Sync patches with buildroot
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-12 21:44:44 -08:00
Ray Donnelly
06855ab27e libtool: Update to 2.4.6 and patch for Cygwin
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13 02:17:46 +00:00
Ray Donnelly
9e81836b81 Add gettext and libiconv as companion libs
.. 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-13 02:17:45 +00: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
Ray Donnelly
9ef1750f3c MinGW-w64: winpthreads doesn't have pthread_mutexattr_settype
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-13 02:17:44 +00:00
Ray Donnelly
58e32a7319 Cygwin: Define R_X86_64_JUMP_SLOT
This should be upstreamed to Cygwin ideally.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13 02:17:44 +00:00
Ray Donnelly
df02517fd7 binutils: Don't link to libfl as it's unnecessary
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-13 02:17:43 +00:00
Ray Donnelly
3c95e3492a binutils: Fix typo
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-13 02:17:42 +00:00
Bryan Hundven
21a448516e uClibc: Add support for uClibc-ng
This commit adds uClibc-ng 1.0.8.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-12 16:15:41 -08:00
Bryan Hundven
930fa77076 uClibc: Reduce supported versions
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-11 08:27:33 -08:00
Bryan Hundven
319c999f77 Merge pull request #242 from stilor/fix-uclibc
Restore uClibc-based samples.
2015-11-10 01:04:13 -08:00