summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-07-14 18:49:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-27 08:33:37 +0100
commit553ffcb94114f0e22990c407f9a077808bb09202 (patch)
tree769b9915e43d545073a25492ea4dbc554a3bf41a /meta
parentba4d4372b197893c80c0d6c7deb565fad4d3ce06 (diff)
downloadpoky-553ffcb94114f0e22990c407f9a077808bb09202.tar.gz
elfutils-0.148: Fix build with gcc6
(From OE-Core rev: c2668171f5d76bfea085ecf2fa7dfe1e42df1e63) (From OE-Core rev: ea6afc2eeee7cc647c7ca64da97fa5321edc6766) 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')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch23
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.148.bb1
2 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch b/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch
new file mode 100644
index 0000000000..b56a754f81
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch
@@ -0,0 +1,23 @@
1Fix warnings found with gcc6
2
3| ../../elfutils-0.148/libdw/dwarf_siblingof.c: In function 'dwarf_siblingof':
4| ../../elfutils-0.148/libdw/dwarf_siblingof.c:69:6: error: nonnull argument 'result' compared to NULL [-Werror=nonnull-compare]
5| if (result == NULL)
6| ^
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Upstream-Status: Inappropriate [ unmaintained ]
10Index: elfutils-0.148/libdw/dwarf_siblingof.c
11===================================================================
12--- elfutils-0.148.orig/libdw/dwarf_siblingof.c
13+++ elfutils-0.148/libdw/dwarf_siblingof.c
14@@ -66,9 +66,6 @@ dwarf_siblingof (die, result)
15 if (die == NULL)
16 return -1;
17
18- if (result == NULL)
19- return -1;
20-
21 if (result != die)
22 result->addr = NULL;
23
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
index ff5325734b..6080c179fa 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
@@ -34,6 +34,7 @@ SRC_URI += "\
34 file://Fix_elf_cvt_gunhash.patch \ 34 file://Fix_elf_cvt_gunhash.patch \
35 file://elf_begin.c-CVE-2014-9447-fix.patch \ 35 file://elf_begin.c-CVE-2014-9447-fix.patch \
36 file://fix-build-gcc-4.8.patch \ 36 file://fix-build-gcc-4.8.patch \
37 file://gcc6.patch \
37" 38"
38# Only apply when building uclibc based target recipe 39# Only apply when building uclibc based target recipe
39SRC_URI_append_libc-uclibc = " file://uclibc-support-for-elfutils-0.148.patch" 40SRC_URI_append_libc-uclibc = " file://uclibc-support-for-elfutils-0.148.patch"