diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.166/elfcmp-fix-self-comparision.patch')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.166/elfcmp-fix-self-comparision.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.166/elfcmp-fix-self-comparision.patch b/meta/recipes-devtools/elfutils/elfutils-0.166/elfcmp-fix-self-comparision.patch new file mode 100644 index 0000000000..6c150bb54c --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.166/elfcmp-fix-self-comparision.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 836a16fe5b5bab4a3afe2c991c104652775ce3a3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: David Abdurachmanov <davidlt@cern.ch> | ||
| 3 | Date: Mon, 11 Apr 2016 16:00:57 +0200 | ||
| 4 | Subject: elfcmp: fix self-comparison error with GCC 6 | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Noticed with Fedora 24 Alpha, gcc (GCC) 6.0.0 20160406 | ||
| 10 | (Red Hat 6.0.0-0.20). | ||
| 11 | |||
| 12 | elfcmp.c: In function ‘main’: | ||
| 13 | elfcmp.c:364:199: error: self-comparison always evaluates | ||
| 14 | to false [-Werror=tautological-compare] | ||
| 15 | if (unlikely (name1 == NULL || name2 == NULL | ||
| 16 | |||
| 17 | Signed-off-by: David Abdurachmanov <davidlt@cern.ch> | ||
| 18 | --- | ||
| 19 | |||
| 20 | Upstream-Status: Backport | ||
| 21 | |||
| 22 | src/ChangeLog | 4 ++++ | ||
| 23 | src/elfcmp.c | 2 +- | ||
| 24 | 2 files changed, 5 insertions(+), 1 deletion(-) | ||
| 25 | |||
| 26 | diff --git a/src/elfcmp.c b/src/elfcmp.c | ||
| 27 | index 852b92f..7b5d39c 100644 | ||
| 28 | --- a/src/elfcmp.c | ||
| 29 | +++ b/src/elfcmp.c | ||
| 30 | @@ -368,7 +368,7 @@ main (int argc, char *argv[]) | ||
| 31 | && sym1->st_shndx != SHN_UNDEF) | ||
| 32 | || sym1->st_info != sym2->st_info | ||
| 33 | || sym1->st_other != sym2->st_other | ||
| 34 | - || sym1->st_shndx != sym1->st_shndx)) | ||
| 35 | + || sym1->st_shndx != sym2->st_shndx)) | ||
| 36 | { | ||
| 37 | // XXX Do we want to allow reordered symbol tables? | ||
| 38 | symtab_mismatch: | ||
| 39 | -- | ||
| 40 | cgit v0.12 | ||
| 41 | |||
