summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils
AgeCommit message (Collapse)Author
2015-06-03binutils: Update to tip of 2.25 branchKhem Raj
This update brings following patches 749b1c7 Fix some PPC assembler errors. fe1e924 [AArch64][Backport] Remove Load/Store register (unscaled immediate) alias 4e4d08c [AArch64][Backport] Don't always create new frag for .inst directive 0381bf1 [AArch64][Backport] PR18270, fix handling of GOT entry for local symbol bb22a11 [AArch64][Backport]Improve PC-relative relocation check for shared library 699dcf3 opcodes/ e700dd4 Downgrade linker error on protected symbols in .dynbss to a warning 13ccf8a Revert "Add extern_protected_data and set it for x86" b0356a6 Add support for the Samsung Exynos M1 processor. 40dbf9d Add support for the Samsung Exynos M1 processor. 2aa5937 Don't pass unadorned zeros to varargs functions 12aca65 Relax PR 15228 protected visibility restriction b443789 [AArch64] Fix branch stubs for BE ab50ec0 Import fixes from mainline sources that address illegal memory access problems with the ELF targeted parts of the BFD library. a539f2c Import patches from the master sources which fix illegal memory accesses found by running the binutils on fuzzed binaries. a5ebc2c Fix build problem introduced by previous delta to coffgrok.c 7a57494 Import fixes from mainline that address illegal memory accesses when working with COFF/PE based files. 4f9583e Import fixes from trunk sources to correct invalid memory access issues with various binutils programs. 304a2b6 Import fixes for invalid memory access issues in the binutils DWARF parser from the trunk sources. 1dead8a Import security fixes for readelf from the master branch: 3e3feb3 Limit multi-byte nop instructions to 10 bytes f12dd7b S/390: Disable relocation sort against code sections. 846daac Fix ppc32 synthetic symbols when __tls_get_addr_opt stub is generated 7235408 Tweak ppc32 tls_get_addr optimisation 642fe3b PowerPC64 thread-safe stubs not needed for iplt 2791b63 Use dynamic text relocs for protected vars cff59f0 PowerPC64 GOLD: complain on misaligned _DS relocs 20951c8 Fix gold error: hidden symbol '...' is not defined locally 7428be5 [AArch64][2.25] Backport support for Cortex-A72 8093a8b [ARM][2.25] Backport support for Cortex-A72 f7cf878 [ARM] Backport "Skip private symbol when doing objdump" 031994d Add extern_protected_data and set it for x86 Additionally rearranges the local patches in sequence Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-04-09binutils: Fix linking issue for R_ARM_REL32 relocsKhem Raj
This issue is surfaces with gcc 5.0 but its a real issue in gold errors are like https://sourceware.org/ml/binutils/2010-12/msg00473.html is the test case Change-Id: I44806e9fb75a164745e52f0040b7efc9be624ae6 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-08binutils: Fix packaging now gold is always builtRichard Purdie
Resolves: ERROR: QA Issue: binutils: Files/directories were installed but not shipped /usr/bin/dwp /usr/bin/ld.gold [installed-vs-shipped] now gold is always built. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-07binutils: Allow gold to build even when not the defaultRichard Purdie
It can be useful to have gold available for testing even when its not the default, therefore build gold by default in all configurations. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-06binutils: Switch to using binutils stable/2.25 branchKhem Raj
We have a lot of patches on top of 2.25 release that we need its easier/cleaner to use the git src instead of tarball and use the latest on the 2.25 branch Additionally, drop binutils-uclibc-300-006_better_file_error.patch since it has been redone with https://sourceware.org/ml/binutils/2006-10/msg00337.html upstream git'ify the patches against upstream repos for better maintainance Change-Id: I572c9bb49f60853e7ade4e8f63ab77b7e41476c5 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-04-06binutils: Fix ICE in goldKhem Raj
Found when linking busybox using gold linker Change-Id: I47b89998b9cb3d75ac97113a1b0fba109483b198 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-04-06binutils: upgrade to 2.25Robert Yang
* Remove the following patches since they are already in the new code: binutils/fix-pr15815.patch binutils/fix-pr16428.patch binutils/fix-pr16476.patch binutils/fix-pr2404.patch binutils/replace_macros_with_static_inline.patch binutils/binutils_CVE-2014-8484.patch binutils/binutils_CVE-2014-8485.patch binutils/binutils_CVE-2014-8501.patch binutils/binutils_CVE-2014-8502.patch binutils/binutils_CVE-2014-8502_1.patch binutils/binutils_CVE-2014-8503.patch binutils/binutils_CVE-2014-8504.patch binutils/binutils_CVE-2014-8737.patch * The file src-release is gone. * Updated patches for the new code. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Conflicts: meta/conf/distro/include/tcmode-default.inc
2014-12-27binutils: several security fixesArmin Kuster
CVE-2014-8484 CVE-2014-8485 CVE-2014-8501 CVE-2014-8502 CVE-2014-8503 CVE-2014-8504 CVE-2014-8737 and one supporting patch. [Yocto # 7084] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-25binutils-cross-canadian: Explicitly DEPEND on nativesdk-flex, we require it ↵Richard Purdie
anyway Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-25binutils: Add fix for recent patch on older gccRichard Purdie
The recent bintuils patch update breaks on older gccs such as CentOS 6. Backport a patch to address this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-25binutils: Apply the proper fix for PR 16428H.J. Lu
It is fixed by commit 4199e3b8669d0a36448687850374fdc2ad7240b6 Author: Alan Modra <amodra@gmail.com> Date: Wed Jan 15 21:50:55 2014 +1030 non-PIC references to __ehdr_start in pie and shared Rather than hacking every backend to not discard dynamic relocations against an undefined hidden __ehdr_start, make it appear to be defined early. We want __ehdr_start hidden before size_dynamic_sections so that it isn't put in .dynsym, but we do need the dynamic relocations for a PIE or shared library with a non-PIC reference. Defining it early is wrong if we don't actually define the symbol later to its proper value. (In some cases we want to leave the symbol undefined, for example, when the ELF header isn't loaded, and we don't have this infomation available in before_allocation.) So replace the existing patches with this one. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-05binutils: Fix building nativesdk binutils with gcc 4.9Khem Raj
Patches explain the issue in detail but this is exposed with gcc 4.9 in binutils 2.24 (From OE-Core rev: fc5c467b680fc5aef4b0f689e6988e17a9322ae0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-01Add texinfo.bbclass; recipes that use texinfo utils at build-time inherit it.Max Eliaser
The class itself currently does nothing. The idea is to mark all recipes that make use of the texinfo utilities. In the future, this class could be used to suppress the generation/formatting of documentation for performance, explicitly track dependencies on these utilities, and eliminate Yocto's current dependency on the host system's texinfo utilities. Signed-off-by: Max Eliaser <max.eliaser@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-30binutils/gcc/gdb: Add TARGET_ARCH to PN for all cross recipesRichard Purdie
This allows them to co-exist together in the native sysroot, with one set of cross tools per target architecture. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-25Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador
The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-03-25binutils: Add fixes for binutils issue 16428Richard Purdie
"ld:i386 crashes with -static -fPIE -pie" https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1266492 This adds in two upstream binutils fixes to avoid the internal error triggered by the combination of -static with -pie on x86 builds. This triggers a backtrace which then triggers a bug in glibc where the process ends up hanging on some systems with broken libcs. We can't fix the libc but we can stop the internal error and hence avoid the hanging builds. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-18binutils: ld-is-gold should not affect native and crosssdk recipesKhem Raj
gold linker does not support all architectures, currently arm and x86 are best supported, therefore we can not enable this as a full distro option where we need to support other architectures e.g. ppc, mips currently, if we enable ld-is-gold distro feature conditionally then it invalidates native and sdk version of native binutils because configure option would change. With this patch we limit ld-is-gold feature to imapact cross binutils and target binutils only. This means that we can reuse the sdk and native versions across architectures. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-02-08binutils: Add backports to resolve systemd (from git) breakageRichard Purdie
Backport the patches for PR2404 and PR16476 from binutils to resolve failures when compiling systemd from git. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-04binutils: Package additional file when using ld-is-goldKhem Raj
Fixes QA warnings like WARNING: QA Issue: binutils: Files/directories were installed but not shipped /usr/bin/ld.bfd /usr/bin/dwp Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-02binutils: Upgrade to 2.24Khem Raj
This builds and runs images for all qemu machines Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-10binutils: Also add autoconf-native to DEPENDSPhil Blundell
Commit 616354f13732d13c17434d5b60b166f691c25761 is insufficient because gnu-config-native's gnu-configize script uses perl modules from autoconf and hence doesn't work unless autoconf-native is staged (which it may not be if building from sstate). Ideally g-c-n would itself declare a dependency on autoconf-native but this is difficult to arrange without creating a dependency loop. autoconf-native already depends on gnu-config-native (because autoreconf invokes gnu-configize) and has a build dependency on m4-native, which in turn build-depends on g-c-n because it configizes itself by steam in do_configure and needs config.{guess,sub} to be available. Adding some sort of gnu-config-initial-native recipe would fix the latter problem, but this would be ugly because it would need special-casing in (at least) autotools.bbclass, and in any case this still wouldn't solve the problem of autoconf itself depending on g-c-n. So, the easiest solution to the problem at hand is to arrange for those few recipes that depend on g-c-n but not autoconf-native to gain that latter dependency as well. Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-02binutils: add/tweak SUMMARYPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-12-10binutils: Add embedspu to standard binutils packageSaul Wold
This is only built for PPC, fixes the following QA Error ERROR: QA Issue: binutils: Files/directories were installed but not shipped /usr/bin/embedspu Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-12binutils: Add gnu-config-native to DEPENDSPhil Blundell
do_configure() in binutils.inc includes an explicit call to gnu-configize so we need to make sure that gnu-config-native is present. Previously this was being dragged in with the rest of the autotools stuff, but commit 54a3e2ee37003fc56af0339f857b0b6442790c26 disabled that for binutils-cross on the grounds that "we don't autoreconf" the toolchain components. Fix this by adding gnu-config-native itself explicitly to DEPENDS. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-08binutils: remove embedspuSaul Wold
This is only built for PPC and not needed, so remove it to fix the QA Issue ERROR: QA Issue: binutils: Files/directories were installed but not shipped /usr/bin/embedspu Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-11-07binutils: Drop binutils-symlinksPeter Seebach
The -symlinks package doesn't really add any value if we're using update-alternatives. Drop it, leaving a spare RPROVIDES in case anyone thought they needed it. Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-11-07binutils: Use alternatives for the binutils-symlinks package.Peter Seebach
The ar and strings utilities are provided as alternatives, but the rest of binutils is being done with binutils-symlinks. This has the side effect that if you want "as", and you install binutils-symlinks to get it, you don't get "ar" from it, because it's not in the symlinks package. Solution: Use the same mechanisms for everything, putting everything in ALTERNATIVES, so installing binutils on a target produces the expected behavior of having the various utilities in place. (We do this only for class-target, though.) Issues: The "embedspu" and "ld.gold" binaries may or may not exist, but the determination of whether to list them as alternatives is being made before the point at which we can easily check for them, so that can produce warnings. Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-10-30cross-canadian: Handle powerpc linux verses linux-gnuspeRichard Purdie
PowerPC toolchains can use the OS "linux" or "linux-gnuspe". This patch links them together so the one cross-canadian toolchain can support both. GCC_FOR_TARGET is set for the GCC recipe as otherwise configure can pick up an incorrect value. [YOCTO #5354] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-10-04cross-canadian: Fix TUNE_PKGARCH referencesRichard Purdie
The cross-canadian compilers are now build once per architecture but were being installed into tune specific locations which is incorrect. This adjusts things so they are make TARGET_ARCH specific. We gain the tune specific parts from the target sysroot which remains tune specific, the compiler and tools are independent ot that. binutils/gcc require sysroot options but since we reset at runtime, these shouldn't have dependencies in the sstate checksums. They are therefore also excluded. With these patches, switching machines does not result in a rebuild of *-cross-canadian and the compiler is correctly located and referenced in the target images. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-07-18Upstream-Status: Correct capitalizationSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-05binutils: Backport emulation template fixesKhem Raj
This fixes the linking errors seen on mips64 when linking sln/ from eglibc 2.18 /builds1/angstrom/build/tmp-angstrom_next-eglibc/sysroots/x86_64-linux/usr/libexec/mips64-angstrom-linux.gcc-cross-initial/gcc/mips64-angstrom-linux/4.8.1/ld: BFD (GNU Binutils) 2.23.2 assertion fail /builds1/angstrom/build/tmp-angstrom_next-eglibc/work/mips64-angstrom-linux/binutils-cross/2.23.2-r4/binutils-2.23.2/bfd/elfxx-mips.c:3453 | collect2: error: ld returned 1 exit status Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-06-03binutils: fix compile error of complex expressions before @l/@hZhenhua Luo
Back port two patches to fix the error of complex expressions before @l/@h. Error sample: test.s: Assembler messages: test.s:1: Error: operand out of range (0xffffffffffff8000 is not between 0x0000000000000000 and 0x000000000000ffff) Fix Bug 4524. Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-29binutils: add two AArch64 related backports to 2.23.2Marcin Juszkiewicz
Update required to pass "movi" related build errors when gcc-4.8 is used. libgcrypt, slang, mysql5 were failing like this: | {standard input}: Assembler messages: | {standard input}:316: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v3.8b,-106' | {standard input}:348: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v3.8b,-8' | {standard input}:352: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v3.8b,-27' Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-24binutils: the cat should always succeed when building config.cacheSaul Wold
There is a race condition between when the CONFIG_SITE list is generated and then used here via the cat to create the config.cache and in *all* configure scripts when reading from CONFIG_SITE. The race in this case is that the sstate setscene task runs on a package that contains a site config file (ncurses in this case) and then bitbake decides that it needs to rebuild and cleans out the site config file, so it existed for siteinfo_get_files() to find in SITECONFIG_SYSROOTCACHE and then was removed for the rebuild. When bintuils tried to run the do_configure() task which creates the binutil's version of config.cache it reads from CONFIG_SITE which now contains the non-existant site config file. (confused yet ;-)? Currently the configure script does a test -r to ensure the file is readable before using it, therefore having the cat succeed regardless of the file being available is consistent behaviour. Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-16binutils: Add broadcom XLP supportKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-08binutils: backport whitespace fixSaul Wold
This is a backport of a whitespace skipping issue: PR14987 and PR14887 Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-08binutils: Upgrade 2.23.1 -> 2.23.2Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-26binutils: Don't generate .PPC.EMB.apuinfo sections for 64-bit outputKhem Raj
This can cause issues building ppc64/eabi kernel. For details see the patch header Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-15binutils: fix ineffectual zero of cache and array bounds issueZhenhua Luo
binutils build fails on Fedora18+: 1. binutils-2.23.1/bfd/elf32-xtensa.c:6078:36: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] memset (sec_cache, 0, sizeof (sec_cache)); ^ 2. binutils-2.23.1/bfd/elf32-xtensa.c:6120:32: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] memset (sec_cache, 0, sizeof (sec_cache)); ^ 3. binutils-2.23.1/opcodes/arc-dis.c:430:13: error: argument to 'sizeof' in '__builtin_strncat' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] sizeof (state->commentBuffer)); ^ 4. binutils-2.23.1/opcodes/rl78-dis.c:230:13: error: array subscript is above array bounds [-Werror=array-bounds] if (oper->use_es && indirect_type (oper->type)) ^ Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-28binutils: Delete recipes for 2.22Khem Raj
We have 2.23.1 as default now. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-28binutils: Fix build with newer texinfo 5.0+Khem Raj
[Yocto #3943] Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-12-05binutils_2.23.1.bb: Correct typo in enable-targets configure optionKhem Raj
Drop virtclass override in favor of class override Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-12-05binutils-2.23.1: Add recipesKhem Raj
backport non regressing patches from 2.23 branch after 2.23.1 release. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-11-24binutils-crosssdk: do not set .interp size to 0x1000 for partial linked objectsLaurentiu Palcu
When building the SDK, the final .interp section size should be set to a bigger value (0x1000) in order to be able to change the dynamic loader's path later. However, we shouldn't do that for partial linked objects (when -r or -rU is used). That's because those objects will then have an .interp section of 0x1000 even if it contains no data and when the final linking is done we will end up with a "cannot move location counter backwards" error. That's because the linker will try to squeeze all the data in the .interp sections found in various partial linked objects into one 0x1000 bytes final .interp section. [YOCTO #3264] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-18binutils: fixed --enable-targets optionEnrico Scholz
There does not exist an '--enable-target=all' option Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-12meta: remove redundant _FOR_BUILD variablesRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-02recipes-devtools: replace virtclass-native(sdk) with class-native(sdk)Robert Yang
The overrides virtclass-native and virtclass-nativesdk are deprecated, which should be replaced by class-native and class-nativesdk. [YOCTO #3297] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-10-02binutils.inc: add vardep on multiarch DISTRO_FEATUREMatthew McClintock
binutils will build differently if this feature is enabled, so make the do_configure step depend on it Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24binutils-2.22: Disable recent gold backports from 2.22 branchKhem Raj
This patch has been causing some regressions on gold. e.g. systemd based images segfault and uclibc based images dont boot. There has been few other reports on the mailing list. Considering this lets withdraw this patch. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-09-14binutils-2.22: Backport PR fixes from 2.22 branchKhem Raj
These are fixes mainly cherrypicks for mips/ppc/x86 mainly fixing PRs in ld and gold Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>