From 768794e6a8ce2a67990e215616852409b24f65ed Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 6 Apr 2015 17:36:35 +0000 Subject: 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 (From OE-Core rev: 887c8cb41a3857b2381e3d83c2db83c1d78ae48d) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- ...1-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch (limited to 'meta/recipes-devtools/binutils/binutils') 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 0000000000..e02430251e --- /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 +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 +--- + 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::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 + -- cgit v1.2.3-54-g00ecf