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-10 18:10:27 +0100 |
commit | 768794e6a8ce2a67990e215616852409b24f65ed (patch) | |
tree | 868ddc83c28e037309251edab2c38a197060af0d /meta/recipes-devtools | |
parent | 252d56646a6cbc474ca77264203e43721a708c05 (diff) | |
download | poky-768794e6a8ce2a67990e215616852409b24f65ed.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
(From OE-Core rev: 887c8cb41a3857b2381e3d83c2db83c1d78ae48d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-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 6f76530445..269bcbbdbb 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 = "\ | |||
31 | file://0011-Change-default-emulation-for-mips64-linux.patch \ | 31 | file://0011-Change-default-emulation-for-mips64-linux.patch \ |
32 | file://0012-Add-XLP-instructions-support.patch \ | 32 | file://0012-Add-XLP-instructions-support.patch \ |
33 | file://0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \ | 33 | file://0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \ |
34 | file://0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \ | ||
34 | " | 35 | " |
35 | S = "${WORKDIR}/git" | 36 | S = "${WORKDIR}/git" |
36 | 37 | ||
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 @@ | |||
1 | From ebe26d855452d07e0152bd78d4966475d2de1de8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 5 Mar 2015 07:30:31 +0000 | ||
4 | Subject: [PATCH] gold/arm: Skip pic check for R_ARM_REL32 | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | gold/arm.cc | 1 + | ||
9 | 1 file changed, 1 insertion(+) | ||
10 | |||
11 | diff --git a/gold/arm.cc b/gold/arm.cc | ||
12 | index 6c472bb..fb80435 100644 | ||
13 | --- a/gold/arm.cc | ||
14 | +++ b/gold/arm.cc | ||
15 | @@ -7829,6 +7829,7 @@ Target_arm<big_endian>::Scan::check_non_pic(Relobj* object, | ||
16 | case elfcpp::R_ARM_TLS_DTPMOD32: | ||
17 | case elfcpp::R_ARM_TLS_DTPOFF32: | ||
18 | case elfcpp::R_ARM_TLS_TPOFF32: | ||
19 | + case elfcpp::R_ARM_REL32: | ||
20 | return; | ||
21 | |||
22 | default: | ||
23 | -- | ||
24 | 2.1.4 | ||
25 | |||