Created attachment 465020 [details, diff] Patch for toolchain-funcs.eclass If I cross-emerge sys-libs/zlib for a mips-linux-uclibc target, defaulting to big-endian, ld will have 'elf32-tradbigmips' as the first entry in the OUTPUT_FORMAT list, even when -EL is specified. This leads to gen_user_ldscript using it as the definitive OUTPUT_FORMAT for its wrapper, though it's obviously incompatible with a library built with -EL. I've attached a patch which extracts the entire OUTPUT_FORMAT list from ld's output instead of just the first entry. This allows linking against the wrapper to proceed normally in the above case.
Is this still relevant?