Load linux64 module for amd64 if Linux abi enabled.

Reviewed by:	emaste@
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D5567
This commit is contained in:
dchagin 2016-03-08 19:08:55 +00:00
parent 97c61b2440
commit 87ba812313

View File

@ -27,6 +27,11 @@ linux_start()
echo -n ' linux'
load_kld -e 'linux(aout|elf)' linux
case `sysctl -n hw.machine_arch` in
amd64)
load_kld -e 'linux64elf' linux64
;;
esac
if [ -x /compat/linux/sbin/ldconfigDisabled ]; then
_tmpdir=`mktemp -d -t linux-ldconfig`
/compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache