64-bit Linux binary compatibility/emulation
William A. Mahaffey III
wam at hiwaay.net
Mon Sep 7 15:16:02 UTC 2015
The FreeBSD wiki for the docker package contains intriguing allusions to
a '64 bit Linux compatibility layer', although the handbook still says
its a nogo. I notice the following when trying to execute a program
compiled under FC14 x86_64 a while back:
[wam at kabini1, TEST, 10:15:40am] 563 % lltr *fpbl* ; date
-rw------- 1 wam users 3162 Feb 12 2012 fpbl.f
-rwx------ 1 wam users 17909 Mar 26 2012 fpbl.linux*
-rw------- 1 wam users 13110 May 25 2014 OUTPUT.fpbl.linux.txt
-rw------- 1 wam users 11760 Sep 5 10:04 fpbl.c
-rwx------ 1 wam users 18003 Sep 5 10:04 fpbl*
-rw------- 1 wam users 13142 Sep 5 10:05 OUTPUT.fpbl.FreeBSD.txt
Mon Sep 7 10:15:46 MCDT 2015
[wam at kabini1, TEST, 10:15:46am] 564 % file fpbl.linux fpbl
fpbl.linux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
GNU/Linux 2.6.32,
BuildID[sha1]=882754a79d9e9583eff5f710da6a3d0eb3251fa2, not stripped
fpbl: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD),
dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 9.3,
not stripped
[wam at kabini1, TEST, 10:15:48am] 565 % uname -a
FreeBSD kabini1.local 9.3-RELEASE-p24 FreeBSD 9.3-RELEASE-p24 #0: Sat
Aug 22 01:54:44 UTC 2015
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
[wam at kabini1, TEST, 10:15:50am] 566 % ./fpbl.linux
ELF binary type "0" not known.
./fpbl.linux: Exec format error. Binary file not executable.
[wam at kabini1, TEST, 10:15:52am] 567 %
i.e. the file type is recognized, a runtime loader seems to be present,
yet the file fails to execute. The FreeBSD version runs AOK & produces
identical output to that from the Linux executable run under linux a
while back. How is progress on 64-bit Linux binary
compatibility/emulation ? TIA & have a nice labor day.
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
More information about the freebsd-questions
mailing list