The Linaro Binary Toolchain
The Linaro GCC 6.4-2017.08 Release is now available.
The GCC 6 Release series has significant changes from the GCC 5 release series. For an explanation of the changes please see the following website:
For help in porting to GCC 6 please see the following explanation:
Download release packages from:
Previous snapshots and release-candidates are at:
Previous releases are at:
A description of the arm and AArch64 target triples can be found at:
Linaro officially supports the current and previous Ubuntu LTS releases (as of the time of this release). This does not mean that the toolchain will not work on other/older Linux distributions. See the following for the life-time of Ubuntu LTS releases.
The host system upon which the cross-compiler will run requires a minimum of glibc 2.14, because of API changes to glibc’s memcpy API.
Linaro GCC 6.4-2017.08
Linaro glibc 2.23 (linaro/2.23/master)
Linaro newlib 2.4-2016.03 (linaro_2.4-branch)
Linaro binutils 2.27 (linaro-local/linaro_binutils-2_27-branch)
Linaro GDB 8.0 (gdb-8.0-branch)
Linaro toolchain package git branches are hosted at:
NEWS for GCC 6 (as of Linaro GCC 6.4-2017.08)
- Previous MinGW hosted version of Linaro GCC C preprocessor failed to convert character set used for string, character constants, etc. This is fixed in this release.
Linaro bugzilla #3040 : CC1 and cc1plus cannot convert UTF-8.
- The Linaro GCC 6.3-2017.05 snapshot added support for -mpure-code option to ARMv7-M and ARMv8-M targets. This option ensures functions are put into sections that contain only code and no data.
- The GDB version was upgraded from GDB 8.0.
- Previous versions of the Linaro GCC 6 toolchain, when -static -E/—dynamic-list are passed to the linker, might create executables with dynamic sections which aren’t supported by run-time. This was exhibited in Perf Tools build system and has been fixed upstream and backported into Linaro Binutils 2.27 branch.
Linaro bugzilla #2926 : Perf tools compiled statically for AArch64 with Linaro release 6.1 and later ones was not statically linked.
- The Linaro GCC 6.3-2017.03 snapshot fixed some ILP32 issues (TLS, exception handling, …) and these have been incorporated into this release.
- Previous versions of the Linaro GCC 6 toolchain were incorrectly generating floating-point code for soft-float Linux targets (arm-linux-gnueabi, and armeb-linux-gnueabi). This escaped detection until recently because the soft-float targeted toolchains were configured to use general-purpose registers for passing floating-point values (which is what you would expect for soft-float toolchains) and the intra-routine floating-code was not noticed.
The issue would only show up on targets that were run on hardware that truly didn’t have floating-point hardware where the kernel did not trap and emulate floating-point routines. This has been solved in Linaro GCC 6.3-2017.02-rc2 by configuring the toolchain (using —with-float=soft) to generate code without any floating-point instructions at all (-mfloat-abi=soft).
This change should not break compatibility between existing binaries compiled with these toolchains since the float-point parameter passing ABI is still the same.
- A bug/regression in the compiler has been identified whereby the target function that is invoked when calling a “weak” function directly is the “strong” override, whereas when calling the function via a pointer the “weak” implementation is used. This would be noticed as inconsistent function invocation when invoking directly vs. invoking via function pointer. This issue only affected 32-bit arm targets. This regression has been fixed upstream and backported into Linaro GCC 6.3-2017.02-rc2.
GCC PR target/78253: [5/6/7 Regression] [ARM] call weak function instead of strong when called through pointer.
Linaro bugzilla #2562: ARM GCC 5.2 call weak function instead of strong when called through pointer
- MS Windows does not support symlinks and the MS Windows archive extractor does not properly deep copy the symlink target files/directories into the symlinked directory structure when unpacking the toolchain archive. This causes problems with missing dependencies when using the Linaro mingw toolchains, as identified in the following bugs:
This has been solved by copying files rather than using symlinks when the mingw targetted toolchain archives are created.
- Users of Linaro’s toolchain have encountered problems when building projects with Autotools (specifically libtool):
The Linaro binary toolchain release contained files with a .la suffix as artifacts of the toolchain build process. These .la files are helper files for libtool, but unlike a gcc install tree, they are not position independent and contain full paths. Since these artifacts contain absolute paths they can actually mislead user invocation of libtool into not finding required libraries (because they reference the build tree, not the install location) and hence breaking Autotools builds. These *.la file artifacts have been removed from Linaro toolchain binaries because they are unnecessary for users.
- The Linaro GCC 6.3-2017.01 snapshot added further enablement for ARMv8-M and these have been incorporated into this release.
- Compiling and statically linking some SPEC2006int tests against tcmalloc have been failing due to a problem with glibc’s memory allocator function overrides. This was fixed upstream:
Backported into Linaro glibc 2.23:
Author: Florian Weimer
Date: Fri Aug 26 22:40:27 2016 +0200
malloc: Simplify static malloc interposition [BZ #20432]
- Host binaries for x86_64 linux hosts now have symbols and debug information stripped in order to reduce the size of the toolchain binary archives. This reduces the archive size from 1.5G to 600M for aarch64-linux-gnu target with the gcc-6-branch.
- The GDB version was upgraded from GDB 7.11 in the Linaro GCC 6.1-2016.08 release to GDB 7.12 in the Linaro GCC 6.2-2016.11 release.
- The Linaro GCC 6.2-2016.10 snapshot added AArch32 support for ARMv8.2 and ARMv8m, as well as some AArch64 fixes for ARMv8.2, and bug fixes merged from FSF GCC 6.2. This is available in the binary toolchain as of Linaro GCC 6.2-2016.11.
- Basic tuning support for the Qualcomm qdf24xx was added to the Linaro GCC 6.2-2016.10 snapshot and is available in the binary toolchain as of Linaro GCC 6.2-2016.11.
- IFUNC was disabled for baremetal targets, as it was causing test-suite failures, and is presently a Linux only feature.
- The gold linker was added to this binary release.
- Backported malloc_lock fix into Linaro newlib 2.4.
Author: Andre Vieira (lists)
Date: Thu Jun 16 12:23:51 2016 +0100
Re-enable malloc_lock for newlib-nano
- Backported rawmemchr patch into Linaro newlib 2.4.
Author: Wilco Dijkstra
Date: Thu May 12 16:16:58 2016 +0000
- Backported strlen fix when using Thumb-2 and -Os -marm into Linaro newlib 2.4.
Author: Thomas Preud’homme
Date: Wed May 11 17:18:48 2016 -0400
Fix strlen using Thumb-2 with -Os -marm
- Backported fix for semihosting ARM when heapinfo not provided by debugger into Linaro newlib 2.4.
Author: David Hoover
Date: Thu Apr 21 07:12:24 2016 +0200
Fixed semihosting for ARM when heapinfo not provided by debugger.
- Merged latest FSF glibc release/2.23/master into Linaro glibc 2.23.
- Backported __ASSUME_REQUEUE_PI check Linaro glibc 2.23 branch.
Author: Adhemerval Zanella
Date: Tue May 17 10:16:39 2016 -0300
Add runtime check for __ASSUME_REQUEUE_PI (BZ# 18463)
- Backported removal of __ASSUME_SET_ROBUST_LIST from Linaro glibc 2.23 branch.
Author: Adhemerval Zanella
Date: Mon May 16 19:01:10 2016 -0300
- Backported removal of __ASSUME_FUTEX_LOCK_PI from Linaro glibc 2.23 branch.
Author: Adhemerval Zanella
Date: Mon May 16 10:35:25 2016 -0300
- Merged latest FSF binutils-2_27-branch into linaro_binutils-2_27-branch.
- The libwinpthread DLL is now copied into the host bin directory to satisfy mingw package dependencies.
- Backported GNU Linker fix.
Author: Nick Clifton
Date: Tue Aug 23 09:45:11 2016 +0100
Fix seg-fault in ARM linker when trying to parse a binary file.
- Backported GNU Assembler fix for PR 20364
Author: Nick Clifton
Date: Fri Aug 5 10:37:57 2016 +0100
Fix the generation of alignment frags in code sections for AArch64.
- Performance related backports from the following snapshots have been included: Linaro GCC 6.1-2016.06, Linaro GCC 6.1-2016.07, Linaro GCC 6.1-2016.08, Linaro GCC 6.2-2016.09, Linaro GCC 6.2-2016.10, Linaro GCC 6.2-2016.11, Linaro GCC 6.2-2016.12, Linaro GCC 6.3-2017.01, Linaro GCC 6.3-2017.02, Linaro GCC 6.3-2017.03, Linaro GCC 6.3-2017.04, Linaro GCC 6.3-2017.05, Linaro GCC 6.3-2017.06 and Linaro GCC 6.4-2017.07 .
See the following Linaro GCC snapshots:
File bugs at http://bugs.linaro.org
For Linaro member support see http://support.linaro.org
For Linaro community support email firstname.lastname@example.org