summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-14 08:24:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 13:24:38 +0000
commit45e8f1351a8e388ffbe7d50a2694a5bc530f2785 (patch)
treebf2f865f23f33d6f35bd4d35278a0297181bb3b5 /meta/classes/insane.bbclass
parentecbf203e34484731dcb6acc5e75df79cb86e55dc (diff)
downloadpoky-45e8f1351a8e388ffbe7d50a2694a5bc530f2785.tar.gz
mips: Enable gnu-hash-style on glibc
latest glibc 2.31 [1] and binutils [2] has finally added the needed support for gnu hash-style, which brings mips into same fold as other architectures Fix check for MIPS specific section for gnu hash information [1] https://sourceware.org/ml/libc-alpha/2019-06/msg00456.html [2] https://sourceware.org/ml/binutils/2019-07/msg00098.html (From OE-Core rev: 9ff90bf04a4c422feaea25180155e4954648f68c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 723348fc8e..60b5599b86 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -373,11 +373,10 @@ def package_qa_hash_style(path, name, d, elf, messages):
373 for line in phdrs.split("\n"): 373 for line in phdrs.split("\n"):
374 if "SYMTAB" in line: 374 if "SYMTAB" in line:
375 has_syms = True 375 has_syms = True
376 if "GNU_HASH" in line: 376 if "GNU_HASH" or "DT_MIPS_XHASH" in line:
377 sane = True 377 sane = True
378 if "[mips32]" in line or "[mips64]" in line: 378 if ("[mips32]" in line or "[mips64]" in line) and d.getVar('TCLIBC') == "musl":
379 sane = True 379 sane = True
380
381 if has_syms and not sane: 380 if has_syms and not sane:
382 package_qa_add_message(messages, "ldflags", "No GNU_HASH in the ELF binary %s, didn't pass LDFLAGS?" % path) 381 package_qa_add_message(messages, "ldflags", "No GNU_HASH in the ELF binary %s, didn't pass LDFLAGS?" % path)
383 382