summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-06-14Update elf2flt default csetMartin Lund1-1/+1
2016-06-10Update elf2flt git repository locationMartin Lund1-1/+1
The elf2flt git repository has been moved to GitHub. Updated the script accordingly. Signed-off-by: Martin Lund <martin.lund@keep-it-simple.com>
2016-05-13Merge pull request #392 from bhundven/fix_building_gcc-5_with_gcc-6Bryan Hundven1-0/+151
patches/gcc: Backport fix for building gcc-5 with gcc-6
2016-05-13patches/gcc: Backport fix for building gcc-5 with gcc-6Bryan Hundven1-0/+151
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-13Merge pull request #373 from stilor/unbreak-ppc-uclibcBryan Hundven12-18/+75
Unbreak samples
2016-05-12Merge pull request #390 from bhundven/addToolVersion_syntax_issuesBryan Hundven1-4/+4
addToolVersion: Fix syntax issues
2016-05-12addToolVersion: Fix syntax issuesBryan Hundven1-4/+4
This issue was reported on github: https://github.com/crosstool-ng/crosstool-ng/issues/378 by: alonbg This is the same addToolVersion.sh change in the zipfile, with minor changes. (whitespace) This closes #378 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-05-12Merge pull request #366 from CDKGlobal/glibc-getaddrinfoBryan Hundven1-0/+551
Add patch for glibc 2.22 for CVE-2015-7547.
2016-04-02Work-around another quirk in GDB configure.Alexey Neyman1-4/+11
Previous fix for cross-gdb broke powerpc-unknown_nofpu-linux-gnu which uses an old GDB (6.8a). That GDB's configure chokes on $CC values with multiple consecutive spaces; see the comment in 300-gdb.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-04-02Mark x86_64-w64-mingw32,x86_64-pc-linux-gnu broken.Alexey Neyman2-2/+0
I couldn't get this sample to build. I tried rolling ct-ng back to 1.22 and back to the commit that introduced it, to no avail. Not sure if it ever built on my machine. The first problem is the failure to build binutils/gold because of the missing <pthread.h> in mingw. However, even if CT_BINUTILS_GOLD_THREADS option is unset, the build dies in configure of the pass-1 of the core CC. The config.log states that it failed to link with libmpfr.a, which has a lot of undefined references to symbols like '__imp___iob_func'. Googling shows that these symbols are some dark Cygwin/MinGW magic and I do not have the knowledge of these arcana. Let some other MinGWizard fix it another day. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-04-02Unbreak sparc-unknown-linux-gnu.Alexey Neyman2-3/+23
GLIBC 2.23 dropped support for pre-v9 SPARC in pthreads. Pass host triplet with s/sparc/sparcv9/ replacement for 2.23. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-04-02Remove --with-expat from extra GDB args.Alexey Neyman4-4/+0
300-gdb.sh always adds --with-expat, no need to list it in crosstool.config. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-04-02Unbreak static cross-gdb.Alexey Neyman2-5/+16
GDB's configure mishandles the libexpat.{so,a} libraries when it is given -static in CFLAGS AND --with-libexpat-prefix in configure's args: it checks for <prefix>/lib/libexpat.so and finding that, attempts to link it as `gcc -static .. conftest.c <prefix>/lib/libexpat.so`; this obviously fails (.so cannot be statically linked), so configure assumes libexpat is unusable. Thus, --with-libexpat-prefix is dangerous and should be avoided; instead, configure should find the libraries via the supplied CC/LD definitions.
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 Neyman2-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-26Merge pull request #320 from bhundven/newlib_updatesBryan Hundven3-3/+49
Newlib updates
2016-03-15Merge pull request #376 from jcmvbkbc/gcc-flags-for-targetBryan Hundven5-0/+109
Pass CFLAGS_FOR_TARGET/CXXFLAGS_FOR_TARGET for libstdc++ in baremetal build
2016-03-15scripts/build/cc: pass FLAGS_FOR_TARGET in do_gcc_core_backendMax Filippov1-0/+3
Pass CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET and LDFLAGS_FOR_TARGET to gcc configure in do_gcc_core_backend as they may be used to build libstdc++ for bare-metal target. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
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-08newlib: add option to enable nano formatted ioBryan Hundven2-0/+13
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-08newlib: add option to enable nano mallocBryan Hundven2-0/+14
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-08newlib: disable multilib if it is not enabledBryan Hundven1-0/+5
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-08newlib: Update newlib versionsBryan Hundven1-3/+17
Newlib release seem to be snapshots now. Newlib 2.3.0 was released in git here: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=ad7b3cde9c157f2c34a6a1296e0bda1ad0975bda and the snapshot for 2.3.0 was here: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=06cd7127e3cf16ab3c0aa665956deb263e524753 The 2.2 series was also updated. Signed-off-by: Bryan Hundven <bryanhundven@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-03-03Merge pull request #364 from bhundven/aarch64_generic_sampleBryan Hundven3-0/+18
Aarch64 generic sample
2016-03-03Merge pull request #365 from bhundven/no_aout_static_checkBryan Hundven1-1/+1
configure: Don't write a.out on static compiler check
2016-03-03configure: Don't write a.out on static compiler checkBryan Hundven1-1/+1
Because I don't pass `-o` to gcc, it makes an a.out file with gcc. For clang it doesn't make the a.out, as that is not the default. It doesn't hurt to output to /dev/null for both. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-03travis-ci: Add aarch64-unknown-linux-gnueabiBryan Hundven1-0/+1
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-03samples: Add generic aarch64 sampleBryan Hundven2-0/+17
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-03Merge pull request #363 from bhundven/update_configBryan Hundven2-51/+58
config.{sub,guess}: Ran ct-ng updatetools
2016-03-03config.{sub,guess}: Ran ct-ng updatetoolsBryan Hundven2-51/+58
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-03Merge pull request #362 from bhundven/rpi_aarch64_sampleBryan Hundven2-0/+17
samples: add aarch64-rpi3-linux-gnueabi
2016-03-03samples: add aarch64-rpi3-linux-gnueabiBryan Hundven2-0/+17
This is a aarch64 raspberry pi 3 sample. Please test! Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-02Merge pull request #360 from kongen/RPi3Bryan Hundven2-0/+18
Adds Raspberry Pi 3 sample config
2016-03-03Adds Raspberry Pi 3 sample configStefan Hallas Mulvad2-0/+18
Signed-off-by: Stefan Hallas Mulvad <shm@hallas.nu>
2016-03-01Merge pull request #359 from bhundven/fix_musl_libc_buildBryan Hundven1-50/+67
musl-libc: Rewrite musl.sh build script
2016-03-01musl-libc: Rewrite musl.sh build scriptBryan Hundven1-50/+67
This commit moves the do_libc_configure function to do_libc_backend and switches do_libc_start_files and do_libc_final to call do_libc_backend. The major reason for the rewrite is that musl => 1.1.13 has had it's own build system rewritten and can now build out-of-tree. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-29Merge pull request #358 from bhundven/musl_updateBryan Hundven1-7/+2
musl-libc: Update to 1.1.14
2016-02-29musl-libc: Update to 1.1.14Bryan Hundven1-7/+2
We also remove the old 1.0 series. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-28Merge pull request #356 from bhundven/check_static_linkBryan Hundven6-0/+18
configure: Check to see if gcc can static link
2016-02-28Merge pull request #357 from dajamminyogesh/masterBryan Hundven1-8/+8
kernel: Updated kernel revisions
2016-02-27kernel: Updated kernel revisionsYogesh Sharma1-8/+8
Kernel revisions updated to match kernel.org. Signed-off-by: Yogesh Sharma <YogeshASharma@gmail.com>
2016-02-26config: Add static link check to static optionsBryan Hundven5-0/+5
If we can't static link with gcc, then don't allow static linking. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-26configure: Check to see if gcc can static linkBryan Hundven1-0/+13
This is a semi-nasty-hack to see if gcc can static link. Obviously on Mac OS X this is not possible, so we set CT_CONFIGURE_has_static_link=y if it can. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-26Merge pull request #353 from bhundven/glibc_cleanupBryan Hundven2-197/+35
Glibc cleanup
2016-02-25Merge pull request #354 from westermo/upgrade-gdbBryan Hundven5-0/+120
gdb: Add support for v7.11, port patches from v7.10.1 that apply
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 Nilsson4-0/+100
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-02-24glibc: Mirror extra_config flags from do_libc_backend_onceBryan Hundven1-0/+1
In do_libc_backend_once: ``` # Also, if those two are missing, iconv build breaks extra_config+=( --disable-debug --disable-sanity-checks ) ``` But in do_libc_locales we only add ```--disable-debug```. This change adds ```--disable-sanity-checks``` to do_libc_locales to mirror this, as I've seen iconv break this way. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-24glibc: remove do_libc_locales_extract; it's emptyBryan Hundven1-10/+0
No point in calling an empty function. Must be left over from the glibc/eglibc split up... then re-merge. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>