Subject: Re: Linux ABI translation (was 1.5.2 kernel)
To: John Klos <john@sixgirls.org>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 02/13/2002 19:37:48
On Wed, 13 Feb 2002, John Klos wrote:

> lilith: {3} ./pi_css5
> ./pi_css5: Exec format error. Binary file not executable.
>
> > What does "file" say? A binary that was pointed out to me as a linux
> > binary was reported by "file" to be svr4. With COMPAT_LINUX plus
> > COMPAT_SVR4, it ran! I didn't bother to try with only one or the other.
>
> lilith: {4} file pi_css5
> pi_css5: ELF 32-bit MSB executable, Motorola 68000, version 1 (SYSV),
> statically linked, stripped
>
> What system did you get it to run on? Mine's a 68060 Amiga with:
>
> options         COMPAT_SUNOS    # Support to run Sun (m68k) executables
> options         COMPAT_SVR4     # Support to run SVR4 (m68k) executables
> options         COMPAT_NOMID    # allow nonvalid machine id executables
> options         COMPAT_LINUX    # Support to run Linux/m68k executables
> options         EXEC_ELF32      # 32-bit ELF executables (Linux, SVR4)
> options         COMPAT_AOUT_M68K

What's COMPAT_AOUT_M68K for? You have built an ELF toolchain on
Amiga???

root@deduction-> uname -v
NetBSD 1.5ZA (DEDUCTION) #5: Mon Feb 11 21:28:10 CST 2002
root@deduction.immanent.net:/s/src-current/sys/arch/mac68k/compile/DEDUCTION
root@deduction-> file pi_css5_m68klinux/pi_css5
pi_css5_m68klinux/pi_css5: ELF 32-bit MSB executable, Motorola 68000,
version 1 (SYSV), statically linked, stripped
root@deduction-> ./pi_css5_m68klinux/pi_css5 100
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
Using FFT length of 100
initializing...
nfft= 128
radix= 10000
error_margin= 1.1767e-06
calculating 512 digits of PI...
AGM iteration
precision= 48: 0.20 sec
precision= 80: 0.19 sec
precision= 176: 0.20 sec
precision= 352: 0.19 sec
precision= 688: 0.20 sec
writing pi512.txt...
1.55 sec. (real time)

Frederick