summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@linaro.org>2020-09-01 18:29:23 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-02 16:00:40 +0100
commit996010f1b9ca98592e2c87e1adcb0c79b86517b7 (patch)
treed4d4ea23604e333208a7c7ecb9c8a638f80455c2
parent3ebfc4fc4e448f4dbc5a04ccceaee6f0f7780a43 (diff)
downloadopenembedded-core-contrib-996010f1b9ca98592e2c87e1adcb0c79b86517b7.tar.gz
openembedded-core-contrib-996010f1b9ca98592e2c87e1adcb0c79b86517b7.tar.bz2
openembedded-core-contrib-996010f1b9ca98592e2c87e1adcb0c79b86517b7.zip
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] Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index ee19ef673e..c32bf25124 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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