summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.26.inc
Commit message (Collapse)AuthorAgeFilesLines
* binutils: apply RPATH fixes from our libtool patchesRoss Burton2017-02-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't autoreconf/libtoolize binutils as it has very strict requirements, so extend our patching of the stock libtool to include two fixes to RPATH behaviour, as part of the solution to ensure that native binaries don't have RPATHs pointing at the host system's /usr/lib. This generally doesn't cause a problem but it can cause some binaries (such as ar) to abort on startup: ./x86_64-pokysdk-linux-ar: relocation error: /usr/lib/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference The situation here is that ar is built and as it links to the host libc/loader has an RPATH for /usr/lib. If tmp is wiped and then binutils is installed from sstate relocation occurs and the loader changed to the sysroot, but there remains a RPATH for /usr/lib. This means that the sysroot loader is used with the host libc, which can be incompatible. By telling libtool that the host library paths are in the default search path, and ensuring that all default search paths are not added as RPATHs by libtool, the result is a binary that links to what it should be linking to and nothing else. [ YOCTO #9287 ] (From OE-Core rev: 6b201081b622cc083cc2b1a8ad99d6f7d2bea480) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
* binutils: Fix gas error with cfi_section inconsistenciesKhem Raj2016-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | This error is visible when using clang but not when using gcc this has been reported and fixed upstream. llvm bug https://llvm.org/bugs/show_bug.cgi?id=29017 binutils bug https://sourceware.org/bugzilla/show_bug.cgi?id=20648 (From OE-Core rev: e5a81575f11dc2a0ec9ee4184514750d2dbd09aa) (From OE-Core rev: e299ac7d5b1e7af7940766e1232f6e425029fab6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> hand merged to apply against 2.26 Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: fix AR issue when opkg is unpacking IPKs containing empty entriesChristophe Chapuis2016-10-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * this patch is backported from 2.26.1 which is already in oe-core/master since this patch: commit 37e8b6ecf9f9163d7b5b3becdc2feba57df4838f Author: Khem Raj <raj.khem@gmail.com> Date: Thu Jul 7 11:08:29 2016 -0700 Subject: binutils: Upgrade to 2.26.1 -SRCREV = "71fa566a9cf2597b60a58c1d7c148bab637454a6" +SRCREV = "c29838e7f484e0b5714b02e7feb9a88d3a045dd2" * verified that the patch exists in this SRCREV range: ~/projects/binutils $ git log --oneline 71fa566a9cf2597b60a58c1d7c148bab637454a6..c29838e7f484e0b5714b02e7feb9a88d3a045dd2^C ... 343a405 Allow zero length archive elements ... so it isn't needed in master branch (From OE-Core rev: a8f44dff13481feaa97e494a3aeafb5b63d40f3f) Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: advance SRCREV to obtain versioned symbolsReinette Chatre2016-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Libraries needing versioned symbols, for example mysql, are not supported by current version of binutils in krogoth. When mysql library from MariaDB is compiled with the current version of binutils we encounter errors at runtime as seen below where php linked to mysql tries to run: php: relocation error: php: symbol mysql_server_init, version libmysqlclient_16 not defined in file libmysqlclient.so.18 with link time reference Above error appears even though symbols exist in library: 245: 000000000001ecc0 0 FUNC GLOBAL DEFAULT 13 mysql_server_init@@libmysqlclient_16 279: 000000000001ecc0 297 FUNC GLOBAL DEFAULT 13 mysql_server_init@@libmysqlclient_18 The problem results from a bug in binutils that has already been fixed upstream as well as on the 2.26 and 2.27 branches. We advance the SRCREV on the 2.26 branch used in krogoth release to pick up the fix. Details about bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19698 (From OE-Core rev: 2d35281de8eeeb23343478aa2c87ea0f2aa7ba06) Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: backport fix for TLSDESC relocations with no TLS segment on arch64Ross Burton2016-07-271-0/+1
| | | | | | | | | | | | | As exposed by WebKit on aarch64 hosts, which causes binutils to throw an internal error. [ YOCTO #9509 ] (From OE-Core rev: a6c75ed55b7ef809bd7d4e69365ea5fb0d88d02e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Use tip of 2.26 branchKhem Raj2016-02-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | Until 2.26.1 is released there are few fixes which are needed especially when using -fpie, here are changes that are part of this version bump H.J. Lu (7): Add a testcase for PR ld/18591 Store estimated distances in compressed_size Remove duplicated marker for 2.26 in gas/NEWS Add -mrelax-relocations= to x86 assembler Mask off the least significant bit in GOT offset Enable -Bsymbolic and -Bsymbolic-functions to PIE Fix a typo in objcopy manual John David Anglin (1): Fix /usr/bin/ld: final link failed: File truncated error on hppa (From OE-Core rev: 3685a1246110d84bffffa6d03a3c2ec0417cb4a3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Repair nios2 PLT and GP handlingMarek Vasut2016-02-111-0/+2
| | | | | | | | | | | | | | | | Repair corner cases in nios2 PLT and GP handling. See the patches themselves for extensive detailed explanation. The patches don't contain the ChangeLog entries, since the changelog entries often cause trouble when applying the patch. (From OE-Core rev: fdac5c38183aa96faea8d51d16ce5f54ee16f944) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Ross Burton <ross.burton@intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Upgrade to 2.26Khem Raj2016-02-011-0/+40
(From OE-Core rev: 86ade2cc2553c942d9526c5323a11ae151653505) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>