Skip to contentSkip to conversation

insane: fix gnu-hash-style check

PATCH New Sumit Garg 1 participant 1 message Sep 1, 2020

lore
Share & tools
lore

Sumit Garg

author
#0 lore raw

PATCH 1/1 insane: fix gnu-hash-style check

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]
---
 meta/classes/insane.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/insane.bbclass +1 -1
index ee19ef6..c32bf25 100644
@@ -438,7 +438,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
Signature · 1 line
2.7.4