Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | |
| 2 | linuxloader () { |
| 3 | case ${TARGET_ARCH} in |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | 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 Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 11 | 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 | } |