Linux_base-fc4/6, FreeBSD 6/7 and some Linux binaries

Paolo Pisati p.pisati at oltrelinux.com
Fri Jun 1 13:03:48 UTC 2007


Hi,
here are some binaries that don't run on FreeBSD with Linux compat:
http://downloads.sourceforge.net/devkitpro/devkitARM_r20-linux.tar.bz2?modtime=1170066539
(use fetch to get it).

[piso at piso ~/devkitARM]$ uname -a
FreeBSD piso.tomato.it 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12
10:40:27 UTC 2007    
root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
[piso at piso ~/devkitARM]$ pkg_info | grep linux
linux_base-fc-4_9   Base set of packages needed in Linux mode (for
i386/amd64)
[piso at piso ~/devkitARM]$ kldstat | grep linux
 3    2 0xc376c000 16000    linux.ko
[piso at piso ~/devkitARM]$ mount | grep linux
linprocfs on /usr/compat/linux/proc (linprocfs, local)

some binaries are ok:

[piso at piso ~/devkitARM]$ ./bin/arm-eabi-ar
Usage: ./bin/arm-eabi-ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV]
[member-name] [count] archive-file file...
       ./bin/arm-eabi-ar -M [<mri-script]
[snip]

others don't work at all:

[piso at piso ~/devkitARM]$ ./bin/git
ELF binary type "0" not known.
[piso at piso ~/devkitARM]$ brandelf ./bin/git
File './bin/git' is of brand 'SVR4' (0).
[piso at piso ~/devkitARM]$ file ./bin/git
./bin/git: ELF 32-bit LSB executable, Intel 80386, version 1, statically
linked, corrupted section header size
[piso at piso ~/devkitARM]$ brandelf -t Linux ./bin/git
[piso at piso ~/devkitARM]$ brandelf ./bin/git
File './bin/git' is of brand 'Linux' (3).
[piso at piso ~/devkitARM]$ ./bin/git
ELF binary type "0" not known.

and there're other binaries with the same issue in that tarball.
I've tried the same binaries on 7.x with linux_base-fc6 but i got the same
results (or slightly similars).
These binaries run fine on Fedora 4/5/6.
Is it fixable?

-- 
bye,

P.



More information about the freebsd-emulation mailing list