From 553ffcb94114f0e22990c407f9a077808bb09202 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 14 Jul 2016 18:49:33 -0700 Subject: elfutils-0.148: Fix build with gcc6 (From OE-Core rev: c2668171f5d76bfea085ecf2fa7dfe1e42df1e63) (From OE-Core rev: ea6afc2eeee7cc647c7ca64da97fa5321edc6766) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- .../elfutils/elfutils-0.148/gcc6.patch | 23 ++++++++++++++++++++++ meta/recipes-devtools/elfutils/elfutils_0.148.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch (limited to 'meta') 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 @@ +Fix warnings found with gcc6 + +| ../../elfutils-0.148/libdw/dwarf_siblingof.c: In function 'dwarf_siblingof': +| ../../elfutils-0.148/libdw/dwarf_siblingof.c:69:6: error: nonnull argument 'result' compared to NULL [-Werror=nonnull-compare] +| if (result == NULL) +| ^ + +Signed-off-by: Khem Raj +Upstream-Status: Inappropriate [ unmaintained ] +Index: elfutils-0.148/libdw/dwarf_siblingof.c +=================================================================== +--- elfutils-0.148.orig/libdw/dwarf_siblingof.c ++++ elfutils-0.148/libdw/dwarf_siblingof.c +@@ -66,9 +66,6 @@ dwarf_siblingof (die, result) + if (die == NULL) + return -1; + +- if (result == NULL) +- return -1; +- + if (result != die) + result->addr = NULL; + 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 += "\ file://Fix_elf_cvt_gunhash.patch \ file://elf_begin.c-CVE-2014-9447-fix.patch \ file://fix-build-gcc-4.8.patch \ + file://gcc6.patch \ " # Only apply when building uclibc based target recipe SRC_URI_append_libc-uclibc = " file://uclibc-support-for-elfutils-0.148.patch" -- cgit v1.2.3-54-g00ecf