diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-04-06 17:36:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-09 19:48:03 +0100 |
commit | 887c8cb41a3857b2381e3d83c2db83c1d78ae48d (patch) | |
tree | cbd43b954677dca3eea46d230ffc047dd21568fb /meta/recipes-devtools/binutils | |
parent | 47f67fae98faec17087a827eff141e05b0400560 (diff) | |
download | openembedded-core-contrib-887c8cb41a3857b2381e3d83c2db83c1d78ae48d.tar.gz |
binutils: Fix linking issue for R_ARM_REL32 relocs
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>
Diffstat (limited to 'meta/recipes-devtools/binutils')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.25.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.25.inc b/meta/recipes-devtools/binutils/binutils-2.25.inc index 6f765304459..269bcbbdbb5 100644 --- a/meta/recipes-devtools/binutils/binutils-2.25.inc +++ b/meta/recipes-devtools/binutils/binutils-2.25.inc @@ -31,6 +31,7 @@ SRC_URI = "\ file://0011-Change-default-emulation-for-mips64-linux.patch \ file://0012-Add-XLP-instructions-support.patch \ file://0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \ + file://0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \ " S = "${WORKDIR}/git" diff --git a/meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch b/meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch new file mode 100644 index 00000000000..e02430251e5 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch @@ -0,0 +1,25 @@ +From ebe26d855452d07e0152bd78d4966475d2de1de8 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Thu, 5 Mar 2015 07:30:31 +0000 +Subject: [PATCH] gold/arm: Skip pic check for R_ARM_REL32 + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + gold/arm.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gold/arm.cc b/gold/arm.cc +index 6c472bb..fb80435 100644 +--- a/gold/arm.cc ++++ b/gold/arm.cc +@@ -7829,6 +7829,7 @@ Target_arm<big_endian>::Scan::check_non_pic(Relobj* object, + case elfcpp::R_ARM_TLS_DTPMOD32: + case elfcpp::R_ARM_TLS_DTPOFF32: + case elfcpp::R_ARM_TLS_TPOFF32: ++ case elfcpp::R_ARM_REL32: + return; + + default: +-- +2.1.4 + |