Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2007 14:40:28 +0200 (CEST)
From:      "Paolo Pisati" <p.pisati@oltrelinux.com>
To:        freebsd-emulation@freebsd.org
Subject:   Linux_base-fc4/6, FreeBSD 6/7 and some Linux binaries
Message-ID:  <32640.217.221.237.206.1180701628.squirrel@krisma.oltrelinux.com>

next in thread | raw e-mail | index | archive | help
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@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@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
[piso@piso ~/devkitARM]$ pkg_info | grep linux
linux_base-fc-4_9   Base set of packages needed in Linux mode (for
i386/amd64)
[piso@piso ~/devkitARM]$ kldstat | grep linux
 3    2 0xc376c000 16000    linux.ko
[piso@piso ~/devkitARM]$ mount | grep linux
linprocfs on /usr/compat/linux/proc (linprocfs, local)

some binaries are ok:

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32640.217.221.237.206.1180701628.squirrel>