aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
Commit message (Collapse)AuthorAgeFilesLines
* build: drop buildbot toolchain rebuild check when not using gitFelix Fietkau2018-09-241-0/+2
| | | | | | | | The check cleans and rebuilds the toolchain if it changed on update. When building from a source tarball, it is reasonable to expect that there will be no updates, so no rebuild check is necessary Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | c5c90b480e Fix segfault in maybe_script_execute. 174709d879 pthread_cond_broadcast: Fix waiters-after-spinning case [BZ #23538] c9570bd2f5 x86: Populate COMMON_CPUID_INDEX_80000001 for Intel CPUs [BZ #23459] 86e0996b1a x86: Correct index_cpu_LZCNT [BZ #23456] cf6deb084b conform/conformtest.pl: Escape literal braces in regular expressions b12bed3e06 stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 20dc7a909a libio: Add tst-vtables, tst-vtables-interposed 4b10e69b1f Synchronize support/ infrastructure with master 762e9d63d5 NEWS: Reorder out-of-order bugs 2781bd5a86 libio: Disable vtable validation in case of interposition [BZ #23313] 74d16a57a3 Check length of ifname before copying it into to ifreq structure. 3aaf8bda00 getifaddrs: Don't return ifa entries with NULL names [BZ #21812] f958b45d52 Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349] 81b994bd83 Fix parameter type in C++ version of iseqsig (bug 23171) 7b52c8ae05 libio: Avoid _allocate_buffer, _free_buffer function pointers [BZ #23236] 4df8479e6b Add NEWS entry for CVE-2018-11236 a5bc5ec967 Add references to CVE-2018-11236, CVE-2017-18269 58ad5f8a64 Add a test case for [BZ #23196] 6b4362f2cb Don't write beyond destination in __mempcpy_avx512_no_vzeroupper (bug 23196) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* musl: sys/socket.h: fix SO_PEERSEC value on MIPSMatthias Schiffer2018-06-241-0/+59
| | | | | | | | | | | Differing from all other archs supported by musl, MIPS defines SO_PEERSEC to 30 instead of 31. Patch has also been submitted upstream. Reported-by: Andrey Jr. Mlenikov <temnota.am@gmail.com> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> (cherry picked from commit 4b50854a60fce73aa83b50c445ea93970322d442)
* uClibc-ng: update to 1.0.30Evgeniy Didin2018-05-241-2/+2
| | | | | | | | | | | | | | | uClibc-ng 1.0.28 does not provide PF_VSOCK/AF_VSOCK definitions, which causes iproute2 v4.16.0 compile errors. In commit 57f2f80383b5 ("bits/socket.h: add missing defines") necessary defines were included and iproute2 builds fine. This commit now is part of uClibc-ng 1.0.30. Lets update uClibc-ng to latest 1.0.30 version. Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: Hauke Mehrtens <hauke@hauke-m.de> Cc: John Crispin <john@phrozen.org> (cherry picked from commit 83e926270361ca2cc7c773282bb1b57a5e67588f)
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-05-231-2/+2
| | | | | | | | | | | | | | | af7519f7b3 Fix path length overflow in realpath [BZ #22786] 365722ace6 Fix stack overflow with huge PT_NOTE segment [BZ #20419] be056fae3b Fix blocking pthread_join. [BZ #23137] 02f0dd83a4 Fix signed integer overflow in random_r (bug 17343). 3241353ab2 i386: Fix i386 sigaction sa_restorer initialization (BZ#21269) 677e6d13e0 [BZ #22342] Fix netgroup cache keys. 71d339cb86 Fix i386 memmove issue (bug 22644). 31e2d15b80 Fix crash in resolver on memory allocation failure (bug 23005) 1f7c4748d6 getlogin_r: return early when linux sentinel value is set 7e7a5f0bcd resolv: Fully initialize struct mmsghdr in send_dg [BZ #23037] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain: gccgo: fix building gccgo compilerYousong Zhou2018-05-072-0/+248
| | | | | | | Fixes FS#1498. "gccgo -static" can fail for missing linker flag -lgcc_eh caused by patch 850-use_shared_libgcc.patch Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* toolchain/binutils: Use xz tarballs where possibleDaniel Engberg2018-04-291-3/+4
| | | | | | | Switch to xz for 2.29.1 and 2.30 These tarballs are about 10Mbyte smaller than bz2. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* glibc: switch from git to httpsJohann Neuhauser2018-04-291-1/+1
| | | | | | This is needed for working behind a http proxy. Signed-off-by: Johann Neuhauser <jneuhauser@dh-electronics.de>
* toolchain/binutils: Remove old patchesDaniel Engberg2018-04-262-42/+0
| | | | | | | | Remove patches for arc-2016.09 Commit https://github.com/openwrt/openwrt/commit/8647f4f018e4dee663b65948d75105fae7bb3cdc made these patches obsolete Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* toolchain/binutils: completely remove 2.28 supportHans Dedecker2018-04-261-5/+0
| | | | | | | | Commit 15e963915963cda515311531b182b9e0c52f35a0 removed support for binutils version 2.28 but did not remove it as selectable item from Binutils Version; let's remove this leftover as well. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: unset LD_LIBRARY_PATHHyeonsik Song2018-04-191-0/+1
| | | | | | Fix build error when use glibc Signed-off-by: Hyeonsik Song <blogcin@naver.com>
* glibc: update glibc to 2.26+ and switch to download from gitHans Dedecker2018-03-131-4/+6
| | | | | | | | | | | | | | Switch glibc to 2.26+ [0] and download the sources from git which will it make easier to update glibc in the future. For an overview of the fixed bugs and CVE related fixes in 2.26+ see the NEWS file [1] [0] https://sourceware.org/git/?p=glibc.git;a=commit;h=d300041c533a3d837c9f37a099bcc95466860e98 [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=410f0d163145c1549fb73fdd96568f585b5bf62f;hb=refs/heads/release/2.26/master Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: fix applying of patchesHans Dedecker2018-03-131-0/+1
| | | | | | | | | | Commit f4d9d7a removed support for version specific patches; but it also broke applying of patches in the patches glibc dir. Fix the issue by setting PATCH_DIR to $(PATH_PREFIX)/patches similar as musl/common.mk. Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/binutils: exclude .rej files when unpacking the tarballFelix Fietkau2018-03-121-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/binutils: remove version 2.28Felix Fietkau2018-03-128-341/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* binutils: Use version 2.29.1 by defaultHauke Mehrtens2018-03-122-2/+2
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain/binutils: add support for version 2.30Felix Fietkau2018-03-127-0/+110
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: switch to version 7 by defaultFelix Fietkau2018-03-122-8/+5
| | | | | | | | | | | | | | | Newer GCC versions are reported to improve code size on various ARM devices, which is why newer u-boot versions require them now. There have also been user reports of data corruption issues fixed on MIPS by updating from GCC 5 to GCC 7. This update was previously held up by these two MIPS compile issues, which have since been fixed: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: merge pending fix for miscompiled MIPS16 code issue (GCC PR ↵Felix Fietkau2018-03-123-2/+22
| | | | | | 84790) Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: fix a build failure on 7.3.0 with macOSFelix Fietkau2018-03-121-0/+178
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* musl: update to version 1.1.19Hauke Mehrtens2018-03-117-86/+27
| | | | | | | | | | This updates musl from a commit between 1.1.18 and 1.1.19 to the final release of the version 1.1.19. This mostly fixes bugs in musl. The size of the uncompressed binary is increased by about 4 KB. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: fix selecting older gcc versions for x86Felix Fietkau2018-02-271-1/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* gcc: merge upstream fix for PR 83496 (fixes FS#814)Felix Fietkau2018-02-261-0/+136
| | | | | | This bug was causing miscompiled code related to branch delay slots Signed-off-by: Felix Fietkau <nbd@nbd.name>
* gcc: refresh patches for version 7.3.0Felix Fietkau2018-02-265-6/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: use version 7.x for x86 by defaultFelix Fietkau2018-02-212-1/+7
| | | | | | | This is needed for retpoline support, which mitigates the spectre attacks. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: remove unused config symbolFelix Fietkau2018-02-211-4/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain: gdb: activate on ARM64Hauke Mehrtens2018-02-101-1/+0
| | | | | | | gdb supports ARM64 since quite some time now, activate it there like on other CPU architectures. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* binutils: assertion failure bfd/elfxx-mips.c:3860Hauke Mehrtens2018-01-272-0/+236
| | | | | | | | With forced PIE and SSP support I ran into this assertion failure. backport two patches to fix this problem from the binutils 2.28 branch. This fix is already included in binutils 2.28.1 and 2.29. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: gcc: update 7.x to 7.3.0Hauke Mehrtens2018-01-2721-3/+3
| | | | | | This version still generates broken code in our setup for MIPS. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* build: cleanup SSP_SUPPORT configure optionJulien Dusser2018-01-273-3/+7
| | | | | | | | | | | | | | | | | | Configure variable SSP_SUPPORT is ambiguous for packages (tor, openssh, avahi, freeswitch). It means 'toolchain supporting SSP', but for toolchain and depends it means 'build gcc with libssp'. Musl no longer uses libssp (1877bc9d8f), it has internal support, so SSP_SUPPORT was disabled leading some package to not use SSP. No information why Glibc and uClibc use libssp, but they may also provide their own SSP support. uClibc used it own with commit 933b588e25 but it was reverted in f3cacb9e84 without details. Create an new configure GCC_LIBSSP and automatically enable SSP_SUPPORT if either USE_MUSL or GCC_LIBSSP. Signed-off-by: Julien Dusser <julien.dusser@free.fr>
* toolchain: add gcc configure default PIE and SSPJulien Dusser2018-01-272-0/+25
| | | | | | | | | | GCC supports starting version 5 --enable-default-ssp and starting version 6 --enable-default-pie. It produces hardened binaries by default without dealing with package compilation flags. Signed-off-by: Julien Dusser <julien.dusser@free.fr>
* kernel-headers: adjust PKG_ variables when using git clone methodAlexandru Ardelean2018-01-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | When using an external git clone for the kernel repo, the build would fail because the build won't download [via git] the kernel tarball. This is because the `toolchain/kernel-headers` assumes that the kernel would get downloaded via normal HTTP. The reason for this is the `HostBuild` rule, which calls the `Download/default` rule. To use the `Download/default` we just need to conditionally adjust some PKG_ vars. We can safely use `LINUX_VERSION` as it was already adjusted in the `kernel-version.mk` to avoid collisions with other tarballs. Fixes: https://bugs.openwrt.org/index.php?do=details&task_id=503 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* toolchain/arc: update to the most recent release arc-2017.09Evgeniy Didin2018-01-2736-289/+342
| | | | | | | | | | | | | | | This commit finally bumps ARC tools to the most recent arc-2017.09 release version. ARC GNU tools of version arc-2017.09 bring some quite significant changes like: * Binutils v2.29 with additional ARC patches * GCC 7.1.1 with additional ARC patches More information on this release could be found here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2017.09-release Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> CC: Alexey Brodkin <abrodkin@synopsys.com> CC: John Crispin <john@phrozen.org>
* uClibc-ng: update to 1.0.28Evgeniy Didin2018-01-271-2/+2
| | | | | | | | | | | | Lets update uClibc-ng to 1.0.28 version for compatibility with gcc 7.x. Since 1.0.22 there were significant patches for compatibility with gcc 7.x: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=5b0f49037e8ea8500b05c8f31ee88529ccac4cee https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=cee0b058fa0b4501b289a2da365182d60314d746 Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> CC: Alexey Brodkin <abrodkin@synopsys.com> CC: John Crispin <john@phrozen.org>
* musl: move BUILD_DIR_TOOLCHAIN/musl symlink to configure stepFelix Fietkau2018-01-251-11/+1
| | | | | | Avoids Build/Prepare quilt related hacks Signed-off-by: Felix Fietkau <nbd@nbd.name>
* musl: allow autorebuildFelix Fietkau2018-01-251-1/+3
| | | | | | | | | Autorebuild is disabled for the toolchain to avoid build-order issues. However, rebuilding musl is safe, so exclude it from that restriction. Avoids the need for manual cleaning on kernel header <-> libc API changes like the ones introduced recently Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: use upstream patches for muslHauke Mehrtens2018-01-203-7/+66
| | | | | | | | | | This replaces the current patches used to make the kernel headers compatible with musl with the version which was accepted upstream. This is included in upstream kernel 4.15. This was compile tested with iproute2 build on all supported kernel versions with musl and one one with glibc. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: musl: update to current HEADChristian Lamparter2017-12-082-21/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: 72656157 fix fgetwc when decoding a character that crosses buffer boundary a223dbd2 add reverse iconv mappings for JIS-based encodings 105eff9d generalize iconv framework for 8-bit codepages a71b46cf fix malloc state corruption when ldso rejects loading a second libc d060edf6 reformat cjk iconv tables to be diff-friendly, match tool output c21051e9 prevent fork's errno from being clobbered by atfork handlers a39f20bf add iso-2022-jp support (decoding only) to iconv 5b546faa add iconv framework for decoding stateful encodings 0df5b39a simplify/optimize iconv utf-8 case 9eb6dd51 handle ascii range individually in each iconv case bff59d13 move iconv_close to its own translation unit 79f49eff refactor iconv conversion descriptor encoding/decoding 30fdda6c fix getaddrinfo error code for non-numeric service with AI_NUMERICSERV 67b29947 fix mismatched type of __pthread_tsd_run_dtors weak definition 13935337 s390x: use generic ioctl.h 4dc44ce8 microblaze: add statx syscall from linux v4.13 ffd048a0 aarch64: add extra_context struct from linux v4.13 6651ef1f add new tcp.h socket options from linux v4.13 14ced228 add new fcntl.h macros from linux v4.13 754f66af ioctl TIOCGPTPEER from linux v4.13 c35a8bf4 add SO_ getsockopt options from linux v4.13 5daaed6a s390x: add syscall number for s390_guarded_storage from linux v4.12 2dc6760f i386: add arch_prctl syscall number from linux v4.12 840d45be aarch64: add new HWCAP_* flags from linux v4.12 4c811227 add ARPHDR_VSOCKMON from linux v4.12 54f04d99 add new SO_ socket options from linux v4.12 9864f60e add statx syscall numbers from linux v4.11 c519658c add TCP_NLA_* enums from linux v4.11 ee3ae782 add TCP_FASTOPEN_CONNECT tcp socket option from linux v4.11 3eb82f73 add ETH_P_IBOE from linux v4.11 bd1560f6 update aarch64 hwcap.h for linux v4.11 cee73f0c add kexec_file_load syscall number on powerpc from linux v4.10 8f569557 add microblaze syscall numbers from linux v4.10 d8004030 add TFD_TIMER_CANCEL_ON_SET that timerfd.h was missing f5638c22 add ETH_MIN_MTU and ETH_MAX_MTU from linux v4.10 01369691 add IP_RECVFRAGSIZE and IPV6_RECVFRAGSIZE from linux v4.10 5c596ed8 add SCM_TIMESTAMPING_OPT_STATS and related TCP_ enums from linux v4.10 6fc6ca1a adjust posix_spawn dup2 action behavior to match future requirements Cc: Syrone Wong <wong.syrone@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* merge: etc: update remaining filesZoltan HERPAI2017-12-081-1/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* toolchain/musl: update to version 1.1.18Felix Fietkau2017-11-092-6/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* gcc: remove support for libgcj/javaFelix Fietkau2017-11-022-13/+2
| | | | | | It has been removed in gcc 7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: use KERNEL_MAKE_FLAGS for kernel file compilationsKarl Vogel2017-10-291-6/+2
| | | | | | | The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS. Make use of this variable for kernel makefiles. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
* toolchain: use glibc for powerpc64 buildsFlorian Larysch2017-10-241-3/+5
| | | | | | | Neither uClibc nor musl currently have working support for powerpc64 in big endian mode. Thus, default to using glibc for this architecture. Signed-off-by: Florian Larysch <fl@n621.de>
* toolchain: remove powerpc64 featureFlorian Larysch2017-10-241-3/+0
| | | | | | | | The powerpc64 feature flag was introduced with the PS3 support, which has been removed for quite a while and is now unused. Remove it and the special biarch handling it triggered during the toolchain build. Signed-off-by: Florian Larysch <fl@n621.de>
* binutils: add version 2.29.1Hauke Mehrtens2017-10-157-0/+110
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain/glibc: Update to 2.26Daniel Engberg2017-10-151-2/+2
| | | | | | Update glibc to 2.26 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* toolchain/gcc: update 5.x to 5.5.0Ryan Mounce2017-10-1543-44/+25
| | | | | | | | | | This is the final bugfix release in the gcc-5 series. Compile and run tested on macOS 10.13 (Xcode 9), mvebu/ar71xx. Removed redundant patch for macOS (backported upstream by yours truly) Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
* gcc: fix build error with macOS + Xcode 9Felix Fietkau2017-10-051-0/+10
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/fortify-headers: Update to 0.9Daniel Engberg2017-09-301-2/+2
| | | | | | Update fortify-headers to 0.9 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* toolchain/gdb: update to version 8.0.1Ryan Mounce2017-09-293-5/+5
| | | | | | | | Fixes CVE-2017-9778. Signed-off-by: Ryan Mounce <ryan@mounce.com.au> [reference fixed CVE] Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>