]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane: fix gnu-hash-style check
authorSumit Garg <sumit.garg@linaro.org>
Tue, 1 Sep 2020 12:59:23 +0000 (18:29 +0530)
committerSteve Sakoman <steve@sakoman.com>
Thu, 3 Sep 2020 03:11:46 +0000 (17:11 -1000)
Fix gnu-hash-style check that always returned True after commit [1]
leading to false positive presence of "GNU_HASH" in objdump output.

Fixes: 9ff90bf04a4c ("mips: Enable gnu-hash-style on glibc") [1]
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 996010f1b9ca98592e2c87e1adcb0c79b86517b7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/insane.bbclass

index 1d76ae7c1d5224a054c7c09f83c6a99133ba46f0..12ae44d4d10e1a10d9301c17c8991c5f153a6b45 100644 (file)
@@ -437,7 +437,7 @@ def package_qa_hash_style(path, name, d, elf, messages):
     for line in phdrs.split("\n"):
         if "SYMTAB" in line:
             has_syms = True
-        if "GNU_HASH" or "DT_MIPS_XHASH" in line:
+        if "GNU_HASH" in line or "DT_MIPS_XHASH" in line:
             sane = True
         if ("[mips32]" in line or "[mips64]" in line) and d.getVar('TCLIBC') == "musl":
             sane = True