aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
Commit message (Collapse)AuthorAgeFilesLines
* glibc: update to latest 2.32 commit (BZ #20019, BZ #27177, BZ #27130)Hans Dedecker2021-01-151-2/+2
| | | | | | | | | 4c619b3eed x86: Check IFUNC definition in unrelocated executable [BZ #20019] 87450ecf8a x86: Set header.feature_1 in TCB for always-on CET [BZ #27177] 2b4f67c2b3 Update for [BZ #27130] fix 1a24bbd43e x86-64: Avoid rep movsb with short distance [BZ #27130] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: add arc700 patchRosen Penev2021-01-144-58/+87
| | | | | | | | | glibc does not officially support ARC700 so this adds the missing pieces. I looked at uClibc-ng and a patch by Synopsis for glibc. ran make toolchain/glibc/refresh to clean up fuzz. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glibc: update to latest 2.32 commit (BZ #24973)Hans Dedecker2021-01-101-2/+2
| | | | | | 0d9793e82a Fix buffer overrun in EUC-KR conversion module (bz #24973) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.32 commitHans Dedecker2020-12-301-2/+2
| | | | | | 1d49bede4d tests-mcheck: New variable to run tests with MALLOC_CHECK_=3 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain: Fix glibc selection on ARC targetsHauke Mehrtens2020-12-231-0/+1
| | | | | | | | Without this change no libc is selected and the build will fail. This will select glibc for ARC CPUs. Fixes: 95f1002acab5 ("toolchain: default to glibc for ARC") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: remove uClibc-ngRosen Penev2020-12-2230-593/+0
| | | | | | | | After musl was introduced, it was desired to remove uClibc-ng. As ARC has no musl support, it was kept around. However, glibc 2.32 includes ARC support. This makes it possible to finally remove it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain: remove uClibc-ng config stuffRosen Penev2020-12-222-22/+0
| | | | | | This is in preparation for removing it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain: default to glibc for ARCRosen Penev2020-12-221-2/+1
| | | | | | | | glibc 2.32 gained support for the ARC architecture. This is preparation for removing uClibc-ng. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain: gcc: Remove support for GCC 5Hauke Mehrtens2020-12-1644-3306/+1
| | | | | | | | | | | | GCC was used in 17.01 as the default compiler the last time. We do not test this old GCC version any more and there are some known problems it fails to compile the U-Boot for the Allwinner A64 SoC. Just remove it to make it clear that we will not support this old GCC version any more. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Paul Spooren <mail@aparcar.org>
* glibc: update to latest 2.32 commit (BZ# 26224)Hans Dedecker2020-12-051-2/+2
| | | | | | | | 050022910b iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] ac0a6929c5 sh: Add sh4 fpu Implies folder 3ea24955bf struct _Unwind_Exception alignment should not depend on compiler flags Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain: musl: refresh patchesHauke Mehrtens2020-12-022-15/+6
| | | | | | Refresh the musl patches Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: kernel-headers: kernel Git tree mirror hashPetr Štetiar2020-11-271-0/+1
| | | | | | Allow setting of mirror hash for Git kernel tree. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* toolchain: kernel-headers: fix check target for kernel Git treePetr Štetiar2020-11-271-2/+9
| | | | | | | | | | | | | Currently the check target fails if the kernel Git tree is used: $ make toolchain/kernel-headers/{download,check} make[2]: Entering directory 'toolchain/kernel-headers' Makefile:105: *** ERROR: Unknown pack format for file openwrt/tmp/dl/. Stop. make[2]: Leaving directory 'toolchain/kernel-headers' toolchain/Makefile:100: recipe for target 'toolchain/kernel-headers/check' failed Signed-off-by: Petr Štetiar <ynezz@true.cz>
* musl: handle wcsnrtombs destination buffer overflow (CVE-2020-28928)Petr Štetiar2020-11-202-1/+66
| | | | | | | | | | | | | | | | | | The wcsnrtombs function in all musl libc versions up through 1.2.1 has been found to have multiple bugs in handling of destination buffer size when limiting the input character count, which can lead to infinite loop with no forward progress (no overflow) or writing past the end of the destination buffera. This function is not used internally in musl and is not widely used, but does appear in some applications. The non-input-limiting form wcsrtombs is not affected. All users of musl 1.2.1 and prior versions should apply the attached patch, which replaces the overly complex and erroneous implementation. The upcoming 1.2.2 release will adopt this new implementation. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* glibc: update to latest 2.32 commit (BZ #25399)Hans Dedecker2020-11-121-2/+2
| | | | | | | | | | | | 5c36293f06 resolv: Serialize processing in resolv/tst-resolv-txnid-collision 2dfa659a66 resolv: Handle transaction ID collisions in parallel queries (bug 26600) 05c025abca support: Provide a way to clear the RA bit in DNS server responses f688bcd83d support: Provide a way to reorder responses within the DNS test server eba0ce6058 Remove __warndecl 5337b2af4b Remove __warn_memset_zero_len [BZ #25399] c6e794640c aarch64: Add unwind information to _start (bug 26853) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest stable version 2.32Hans Dedecker2020-11-073-80/+81
| | | | | | | | refresh patches : 050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch 00-fix_cross_rpcgen.patch Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain: gdb: Remove ARC patchesHauke Mehrtens2020-11-013-64/+0
| | | | | | | The ARC specific gdb was removed some time ago. Fixes: 969690b33c56 ("toolchain/gdb: Don't use gdb-arc") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: gdb: Disable testsHauke Mehrtens2020-11-012-21/+2
| | | | | | | | Instead of patching the tests out, just remove them with a configure option. No files were generates in the testsuite and unit-test directories. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: gdb: Update to version 10.1Hauke Mehrtens2020-11-014-34/+10
| | | | | | | | | | | gdb 10.1 adds many new features for example gdbserver support for - ARC GNU/Linux - RISC-V GNU/Linux Removed this patch, because similar changes are now integrated upstream: toolchain/gdb/patches/100-no_extern_inline.patch Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* glibc: update to latest 2.31 commitHans Dedecker2020-10-201-2/+2
| | | | | | | | | | | 4bc9918c99 AArch64: Use __memcpy_simd on Neoverse N2/V1 4722d1fb9d [AArch64] Improve integer memcpy bea507a3f5 AArch64: Rename IS_ARES to IS_NEOVERSE_N1 d0a5b76902 AArch64: Improve backwards memmove performance 24a30c5959 AArch64: Add optimized Q-register memcpy 88db98fa6e AArch64: Align ENTRY to a cacheline Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.31 commit [BZ #26383]Hans Dedecker2020-10-121-2/+2
| | | | | | 32965a46ce intl: Handle translation output codesets with suffixes [BZ #26383] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/binutils: update to 2.35.1DENG Qingfang2020-10-046-7/+7
| | | | | | Update binutils 2.35 to 2.35.1 Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* toolchain: nasm: update to 2.15.05Daniel Golle2020-09-281-2/+2
| | | | | | Compile-tested libx264 and ffmpeg with x86-asm, worked fine. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* toolchain: Update GCC 10 to version 10.2.0DENG Qingfang2020-08-3120-4/+4
| | | | Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* toolchain/binutils: add binutils 2.35DENG Qingfang2020-08-316-0/+90
| | | | | | Add binutils version 2.35 Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* musl: add common glibc extention for nftwTony Ambardar2020-08-312-1/+103
| | | | | | | | | Add FTW_ACTIONRETVAL mode and update nftw library for walking file trees. Update needed to build bpftool userspace utility from Linux kernel source. Also increment PKG_RELEASE. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* uClibc-ng: refresh config and remove several legacy optionsRosen Penev2020-08-2422-159/+4
| | | | | | | | | | | | SUSV3_LEGACY_MACROS are completely unused since SUSV3_LEGACY is enabled HAS_OBSOLETE_BSD_SIGNAL is completely deprecated functionality. HAS_BSD_RES_CLOSE is completely deprecated functionality. HAS_FTW is deprecated SUSV4 functionality. Saves ~4.5kb. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* uClibc-ng: update package from 1.0.31 to 1.0.34Donald Hoskins2020-08-241-2/+2
| | | | | | | | | | Update package from 1.0.31 to 1.0.34 Tested mips64/octeonplus/octeon3 Build against: OpenWrt SNAPSHOT r13871-546e140382 / LuCI Master git-20.186.79919-0c47989 Build Kernel: 5.4.51 Signed-off-by: Donald Hoskins <grommish@gmail.com>
* toolchain/binutils: fix broken build of binutils 2.34 on mips64Tony Ambardar2020-08-101-1/+1
| | | | | | | | | | | | | Commit 53470bdf32 ("toolchain/binutils: Add binutils 2.34") logs refreshed patches, but also adds a typo causing failed builds on mipsel64 platforms, including the malta subtarget. Update the patch to fix this. This fixes the following build error: make[7]: *** No rule to make target 'elf64ltsmip.o', needed by 'ld-new'. Stop. Fixes: FS#3276 Fixes: 53470bdf32 ("toolchain/binutils: Add binutils 2.34") Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* glibc: update to latest 2.31 commit [BZ #19519 BZ #26332 BZ #26248]Hans Dedecker2020-08-061-2/+2
| | | | | | | | | | 6fdf971c9d Add NEWS entry for CVE-2016-10228 (bug 19519) 70d585151c Rewrite iconv option parsing [BZ #19519] 1c8efe848b powerpc: Fix incorrect cache line size load in memset (bug 26332) 7611339a9b nptl: Zero-extend arguments to SETXID syscalls [BZ #26248] 21b760cc2f Disable warnings due to deprecated libselinux symbols used by nss and nscd Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/binutils: remove versions 2.29.1 and 2.31.1Adrian Schmutzler2020-08-0312-496/+0
| | | | | | | | We currently support four versions of binutils in parallel. Let's just keep the latest two and drop the older ones before the next one comes around. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* toolchain: add PKG_RELEASE if local filesPaul Spooren2020-07-293-3/+6
| | | | | | | | | | | | | | | | | | | The toolchain packages partly contain local code like patches and configuration files. These files are not tracked via PKG_VERSION as this variable only covers the upstream package version. To allow versioning of the buildsystem, this commit adds PKG_RELEASE:=1 to all toolchain packages with local files. Whenever a local file is changed the release must be increased. This does not touch binutils and gcc for now, as these provide multiple versions within one package. Also update the copyright of touched files to 2020. Signed-off-by: Paul Spooren <mail@aparcar.org> [exclude binutils/gcc from patch, adjust commit title/message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* toolchain: binutils: Use version 2.34 by defaultHauke Mehrtens2020-07-242-5/+2
| | | | | | | | | | | | Switch to binutils version 2.34 for all CPUs by default. The ARC CPUs do not need any special binutils version any more. This increases the image size by 0.2% on MIPS (lantiq) Tested on lantiq, ipq40xx Acked-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* glibc: fix memcpy and memmove for negative length [BZ #25620]Hans Dedecker2020-07-211-2/+2
| | | | | | | | 6f3459f985 Add NEWS entry for CVE-2020-6096 (bug 25620) 64246fccaf arm: CVE-2020-6096: Fix multiarch memcpy for negative length [BZ #25620] 9bbd2b6172 arm: CVE-2020-6096: fix memcpy and memmove for negative length [BZ #25620] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: fix avx2 strncmp offset compare condition check [BZ #25933]Hans Dedecker2020-07-131-2/+2
| | | | | | | 4e8a33a959 NEWS: Mention BZ 25933 fix fd15ba932d Fix avx2 strncmp offset compare condition check [BZ #25933 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/gdb: Don't use gdb-arcRosen Penev2020-07-111-11/+0
| | | | | | GDB got support for ARC with version 8.2. No need for this fork. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain/gcc: Add GCC 10.1.0 patchesSyrone Wong2020-07-1113-34/+34
| | | | | | | | | | | | | | | Compared to GCC 9: 870-ppc_no_crtsavres.patch changes moved to another file following upstream 881-no_tm_section.patch keep the tm section disabled patches refreshed to apply cleanly See https://gcc.gnu.org/gcc-10/porting_to.html for more info Compiled and run tested on x86_64 Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
* toolchain/gcc: Add GCC 10.1.0 configSyrone Wong2020-07-113-0/+12
| | | | | | | | Add needed config changes and tarball hash for new GCC version. Signed-off-by: Syrone Wong <wong.syrone@gmail.com> [added missing commit description] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* toolchain/gcc: Copy patches from 9.3.0 to 10.1.0Syrone Wong2020-07-1118-0/+839
| | | | | | No content changes in this commit Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
* toolchain: remove gcc libssp and use libc variantIan Cooper2020-06-174-18/+4
| | | | | | | | | | | | | | | Removes the standalone implementation of stack smashing protection in gcc's libssp in favour of the native implementation available in glibc and uclibc. Musl libc already uses its native ssp, so this patch does not affect musl-based toolchains. Stack smashing protection configuration options are now uniform across all supported libc variants. This also makes kernel-level stack smashing protection available for x86_64 and i386 builds using non-musl libc. Signed-off-by: Ian Cooper <iancooper@hotmail.com>
* musl: use official release tarAlexander Couzens2020-06-141-6/+3
| | | | | | | | | | | To prevent "wrong" musl packages which have a new version number but the package still contains an old version, because PKG_SOURCE_VERSION was unchanged. Ref: musl ml https://www.openwall.com/lists/musl/2020/05/22/4 Reviewed-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* musl: restore lock skipping for mostly-singlethreaded programs, and related ↵Matthias Schiffer2020-05-263-0/+166
| | | | | | | | | | | | patches The remainder of the patch series proposed by upstream [2] for the locking synchronization issue [1]. [1] https://www.openwall.com/lists/musl/2020/05/22/3 [2] https://www.openwall.com/lists/musl/2020/05/22/10 Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* musl: fix locking synchronization bugMatthias Schiffer2020-05-261-0/+69
| | | | | | | | | | | | | Import proposed upstream fix [2] for the critical locking synchronization bug recently found in musl [1]. This affects all programs that are temporarily multithreaded, but then return to single-threaded operation. [1] https://www.openwall.com/lists/musl/2020/05/22/3 [2] https://www.openwall.com/lists/musl/2020/05/22/10 Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* glibc: update to latest 2.31 commit (BZ #25976, BZ #25824)Hans Dedecker2020-05-261-2/+2
| | | | | | | 3a44844c97 nss_compat: internal_end*ent may clobber errno, hiding ERANGE [BZ #25976] c839175267 aarch64: fix strcpy and strnlen for big-endian [BZ #25824] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.31 commitHans Dedecker2020-05-131-2/+2
| | | | | | | | | | | | | | | 1094741224 aarch64: Accept PLT calls to __getauxval within libc.so a98b8b221c NEWS: Mention fixes for BZ 25810/25896/25902/25966 4c833bbebe x86-64: Use RDX_LP on __x86_shared_non_temporal_threshold [BZ #25966] 3b9ceb3320 NEWS: Mention bug 25639 fixed in 2.31 branch bb44fe7711 oc_FR locale: Fix spelling of April (bug 25639) f2ac792047 oc_FR locale: Fix spelling of Thursday (bug 25639) 18fdba553d Add a C wrapper for prctl [BZ #25896] 7c9e054afd powerpc: Rename argN to _argN in LOADARGS_N [BZ #25902] 9c5ae39a64 Add C wrappers for process_vm_readv/process_vm_writev [BZ #25810] 63c3696a4a Mark unsigned long arguments with U in more syscalls [BZ #25810] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/gcc: eliminate uClibc atexit hackRosen Penev2020-04-261-9/+2
| | | | | | | | This seems to be over 10 years old. It doesn't seem to be needed anymore. Tested on malta with uClibc (selected BROKEN). Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain: glibc: Define minimum support kernel version as 4.14Hauke Mehrtens2020-04-181-1/+2
| | | | | | | This will compile glibc in a way that it will only support kernel 4.14 and later. Compatibility code for older kernel versions will be removed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: glibc: Update glibc to version 2.31Hauke Mehrtens2020-04-184-30/+690
| | | | | | | | | | | | | | | This updates glibc to the most recent version 2.31. 001-regex-read-overrun.patch was a backport from a more recent version and is integrated in glibc 2.31. 050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch is needed to add the DES crypto functions back again. They were removed in glibc 2.28, but we still use them in ppp. musl lib also provides these DES crypto functions. Without them we would have to link ppp against openssl or an other crypto library. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain/gcc: remove uclibc hackRosen Penev2020-04-131-3/+0
| | | | | | | | | | | | This was introduced with 014d3b98b96872d020ffccf0358ba60967b3f1c0 , which is almost 10 years old. uClibc-ng does not suffer from this problem. Note that this hack prevents libstdc++ from using C++11 math functions. Tested by removing all of the mpd patches designed to fix this and compiling. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain: Update GCC 9 to version 9.3.0Hauke Mehrtens2020-03-1821-61/+6
| | | | | | The removed patch is included in GCC 9.3.0. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>