bitbake.conf: don't force musl on mips to use classic sysv hashing
PATCH 1/2 bitbake.conf: don't force musl on mips to use classic sysv hashing
This is no longer needed, qemumips with musl generates the expected DT_MIPS_XHASH table as it already does with glibc:
Dynamic Section:
NEEDED libc.so SONAME libz.so.1 DT_MIPS_XHASH 0x000001a8
--- meta/conf/bitbake.conf | 2 -- 1 file changed, 2 deletions(-)
meta/conf/bitbake.conf +0 -2
@@ -636,8 +636,6 @@ ASNEEDED ?= "-Wl,--as-needed" export LDFLAGS = "${TARGET_LDFLAGS}" TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED} ${DEBUG_PREFIX_MAP}" -# mips does not support GNU hash style therefore we override -LINKER_HASH_STYLE:mipsarch:libc-musl = "sysv" # Pass parallel make options to the compile task EXTRA_OEMAKE:prepend:task-compile = "${PARALLEL_MAKE} "
Signature · 1 line
2.34.1
PATCH 2/2 insane: remove now obsolete special case for musl on mips
We don't need to special-case musl-on-mips now that the link hash is the correct type by default.
--- meta/classes-global/insane.bbclass | 2 -- 1 file changed, 2 deletions(-)
meta/classes-global/insane.bbclass +0 -2
@@ -419,8 +419,6 @@ def package_qa_hash_style(path, name, d, elf): has_syms = True if "GNU_HASH" in line or "MIPS_XHASH" in line: sane = True - if ("[mips32]" in line or "[mips64]" in line) and d.getVar('TCLIBC') == "musl": - sane = True if has_syms and not sane: path = package_qa_clean_path(path, d, name) oe.qa.handle_error("ldflags", "File %s in package %s doesn't have GNU_HASH (didn't pass LDFLAGS?)" % (path, name), d)
Signature · 1 line
2.34.1
Quoted 9 lines · Ross Burton
This is no longer needed, qemumips with musl generates the expected
DT_MIPS_XHASHtable as it already does with glibc:Dynamic Section:
NEEDED libc.so SONAME libz.so.1 DT_MIPS_XHASH 0x000001a8
I am afraid we can not do this. xhash is supported by toolchain that's is correct but
it also needs to be supported by dynamic linker and musl does not have this implemented
Quoted 21 lines
Signed-off-by Ross Burton <[email protected]>--- meta/conf/bitbake.conf | 2 -- 1 file changed, 2 deletions(-)meta/conf/bitbake.conf +0
-3@@ -636,8 +636,6 @@ ASNEEDED ?= "-Wl,--as-needed" export LDFLAGS = "${TARGET_LDFLAGS}" TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED} ${DEBUG_PREFIX_MAP}" -# mips does not support GNU hash style therefore we override -LINKER_HASH_STYLE:mipsarch:libc-musl = "sysv" # Pass parallel make options to the compile task EXTRA_OEMAKE:prepend:task-compile = "${PARALLEL_MAKE} " --2.34.1
Khem has pointed out to me that whilst the binaries build successfully, musl doesn’t support MIPS_XHASH so it won’t _actually_ run.
Ignore these, sorry for the noise.
Ross
Quoted 40 lines · Ross Burton via lists.openembedded.org
This is no longer needed, qemumips with musl generates the expected
DT_MIPS_XHASHtable as it already does with glibc:Dynamic Section:
NEEDED libc.so SONAME libz.so.1 DT_MIPS_XHASH 0x000001a8Signed-off-by Ross Burton <[email protected]>---
meta/conf/bitbake.conf| 2 --1 file changed, 2 deletions(-)meta/conf/bitbake.conf +0
-0@@ -636,8 +636,6 @@ ASNEEDED ?= "-Wl,--as-needed"export LDFLAGS = "${TARGET_LDFLAGS}"
TARGET_LDFLAGS= "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED} ${DEBUG_PREFIX_MAP}"meta/conf/bitbake.conf +0
-2-# mips does not support GNU hash style therefore we override -LINKER_HASH_STYLE:mipsarch:libc-musl = "sysv"# Pass parallel make options to the compile task EXTRA_OEMAKE:prepend:task-compile = "${PARALLEL_MAKE} "
Signature · 10 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#205346): https://lists.openembedded.org/g/openembedded-core/message/205346 Mute This Topic: https://lists.openembedded.org/mt/108906501/6875888 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-