Bug 10389

Summary: linuxloader.bbclass does not understand mips64
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mark Hatle <mark.hatle>
Component: coreAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, ross.burton
Version: 2.2   
Target Milestone: 2.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mark Hatle 2016-10-06 16:30:25 UTC
The meta/classes/linuxloader.bbclass is used by various things to specify the proper name of the ld.so for a given architecture.

It does not currently have 'mips64' entries, so:

    dynamic_loader="/unknown_dynamic_linker"

is returned.

This can cause problems with mklibs or prelinking.

For a list of the available linkers:

https://sourceware.org/glibc/wiki/ABIList#mips

It should be possible to change the scan to just do something like:

 		powerpc | microblaze )
 			dynamic_loader="${base_libdir}/ld.so.1"
 			;;
		mipsisa32r6el | mipsisa32r6 | mipsisa64r6el | mipsisa64r6)
			dynamic_loader="${base_libdir}/ld-linux-mipsn8.so.1"
                        ;;
		mips*)
 			dynamic_loader="${base_libdir}/ld.so.1"
 			;;

(Note the mipsisa* entries come from a patch recently submitted to the oe-core-devel
Comment 1 Ross Burton 2016-10-11 16:48:12 UTC
Fixed with oe-core b90d68fda3d14b4d19b7ffcb5b80ed28563a616d.