From 7b68aa7b6f9eae8c4e5ba226849d497f00206e84 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Tue, 8 Mar 2016 19:08:55 +0000 Subject: [PATCH] Load linux64 module for amd64 if Linux abi enabled. Reviewed by: emaste@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5567 --- etc/rc.d/abi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/rc.d/abi b/etc/rc.d/abi index 3765b058114f..5021843841fd 100755 --- a/etc/rc.d/abi +++ b/etc/rc.d/abi @@ -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