Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | |
| 2 | linuxloader () { |
| 3 | case ${TARGET_ARCH} in |
| 4 | powerpc | mips | mipsel | microblaze ) |
| 5 | dynamic_loader="${base_libdir}/ld.so.1" |
| 6 | ;; |
| 7 | powerpc64) |
| 8 | dynamic_loader="${base_libdir}/ld64.so.1" |
| 9 | ;; |
| 10 | x86_64) |
| 11 | dynamic_loader="${base_libdir}/ld-linux-x86-64.so.2" |
| 12 | ;; |
| 13 | i*86 ) |
| 14 | dynamic_loader="${base_libdir}/ld-linux.so.2" |
| 15 | ;; |
| 16 | arm ) |
| 17 | dynamic_loader="${base_libdir}/ld-linux.so.3" |
| 18 | ;; |
| 19 | * ) |
| 20 | dynamic_loader="/unknown_dynamic_linker" |
| 21 | ;; |
| 22 | esac |
| 23 | echo $dynamic_loader |
| 24 | } |