mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
@@ -373,11 +373,10 @@ 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" in line:
|
||||
if "GNU_HASH" or "DT_MIPS_XHASH" in line:
|
||||
sane = True
|
||||
if "[mips32]" in line or "[mips64]" in line:
|
||||
if ("[mips32]" in line or "[mips64]" in line) and d.getVar('TCLIBC') == "musl":
|
||||
sane = True
|
||||
|
||||
if has_syms and not sane:
|
||||
package_qa_add_message(messages, "ldflags", "No GNU_HASH in the ELF binary %s, didn't pass LDFLAGS?" % path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user