blob: 117b03074611685e9e97f079d1992de0fcfc5cf8 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001
2linuxloader () {
3 case ${TARGET_ARCH} in
Patrick Williamsc0f7c042017-02-23 20:41:17 -06004 powerpc | microblaze )
5 dynamic_loader="${base_libdir}/ld.so.1"
6 ;;
7 mipsisa32r6el | mipsisa32r6 | mipsisa64r6el | mipsisa64r6)
8 dynamic_loader="${base_libdir}/ld-linux-mipsn8.so.1"
9 ;;
10 mips* )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050011 dynamic_loader="${base_libdir}/ld.so.1"
12 ;;
13 powerpc64)
14 dynamic_loader="${base_libdir}/ld64.so.1"
15 ;;
16 x86_64)
17 dynamic_loader="${base_libdir}/ld-linux-x86-64.so.2"
18 ;;
19 i*86 )
20 dynamic_loader="${base_libdir}/ld-linux.so.2"
21 ;;
22 arm )
23 dynamic_loader="${base_libdir}/ld-linux.so.3"
24 ;;
25 * )
26 dynamic_loader="/unknown_dynamic_linker"
27 ;;
28 esac
29 echo $dynamic_loader
30}