summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-06 19:12:33 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-06 16:38:30 +0000
commite82e4d2cb05dcbafb70af3ecfd89897bf16f983c (patch)
treec4ffa87f20157cdf69d90fba48063d479dba7aca /meta/recipes-devtools
parent4655904dbd6d4e2fe9e93400c8ace18bb135a85d (diff)
downloadpoky-e82e4d2cb05dcbafb70af3ecfd89897bf16f983c.tar.gz
binutils: Fix build with clang
(From OE-Core rev: 208dadb8f1864aca88c69766f3bfb37a2ef4953c) (From OE-Core rev: 86a4ecad734087cff7d5c1d6109f6256b8e2b75b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@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.31.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch32
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.31.inc b/meta/recipes-devtools/binutils/binutils-2.31.inc
index 0c9d4cef21..c3c15fb416 100644
--- a/meta/recipes-devtools/binutils/binutils-2.31.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.31.inc
@@ -41,6 +41,7 @@ SRC_URI = "\
41 file://0019-Improved-robustness.-Return-FALSE-in-case-of-NULL-po.patch \ 41 file://0019-Improved-robustness.-Return-FALSE-in-case-of-NULL-po.patch \
42 file://0020-Make-sure-global-symbol-is-not-an-indirect-or-warnin.patch \ 42 file://0020-Make-sure-global-symbol-is-not-an-indirect-or-warnin.patch \
43 file://0021-PLT-information-was-still-being-generated-when-symbo.patch \ 43 file://0021-PLT-information-was-still-being-generated-when-symbo.patch \
44 file://clang-bfd-fix.patch \
44 file://CVE-2018-17358.patch \ 45 file://CVE-2018-17358.patch \
45 file://CVE-2018-17360.patch \ 46 file://CVE-2018-17360.patch \
46 file://CVE-2018-18309.patch \ 47 file://CVE-2018-18309.patch \
diff --git a/meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch b/meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch
new file mode 100644
index 0000000000..caf78488df
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch
@@ -0,0 +1,32 @@
1Fix compiler error seen with clang, The return value of this
2function is not checked anywhere so in a way its useless but
3still technically correct to return a value here
4
5Fixes
6
7../../bfd/reloc.c:1638:7: error: non-void function '_bfd_clear_contents' should return a value [-Wreturn-type]
8 return;
9 ^
101 error generated.
11
12It has been fixed in master along with a larger cleanup and fix for relocations
13
14https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=1dc9e2d63e37839ff1768346b2e3f52e338baba5
15
16Upstream-Status: Backport [Fixes differently]
17
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19
20Index: git/bfd/reloc.c
21===================================================================
22--- git.orig/bfd/reloc.c
23+++ git/bfd/reloc.c
24@@ -1635,7 +1635,7 @@ _bfd_clear_contents (reloc_howto_type *h
25 default:
26 abort ();
27 case 0:
28- return;
29+ return 0;
30 case 1:
31 x = bfd_get_8 (input_bfd, location);
32 break;