Subject: port-m68k/15334: Linux-m68k binary compatibility is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <john@sixgirls.org>
List: netbsd-bugs
Date: 01/22/2002 13:54:48
>Number: 15334
>Category: port-m68k
>Synopsis: COMPAT_LINUX on m68k appears to be broken.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-m68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 22 10:55:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: John Klos
>Release: NetBSD 1.5.1, NetBSD 1.5.3_ALPHA
>Organization:
Sixgirls Computing Labs
>Environment:
System: NetBSD xira 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (XIRA) #0: Mon Oct 22 07:32:01 EDT 2001 root@indy:/home/src/sys/arch/mac68k/compile/XIRA mac68k
NetBSD reva.sixgirls.org 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (REVA) #1: Mon Jan 14 09:57:55 EST 2002 jean@reva.sixgirls.org:/usr/cvs/release-1-5/src/sys/arch/amiga/compile/REVA amiga
>Description:
On mac68k, kernels will not compile with option COMPAT_LINUX; on amiga, the kernel will compile but m68k Linux binaries are not executable.
mac68k:
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DGRF_COMPAT -DMAXUSERS=32 -D_KERNEL -Dmac68k -c ../../../../compat/linux/common/linux_termios.c
cpp -traditional -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DGRF_COMPAT -DMAXUSERS=32 -D_KERNEL -Dmac68k ../../../../compat/linux/arch/m68k/linux_sig_machdep.S | sed -e 's/^#.*//' | as -o linux_sig_machdep.o
{standard input}: Assembler messages:
{standard input}:289: Error: "instruction/operands mismatch" -- Statement 'moveq #LINUX_SYS_exit,%d0' ignored
*** Error code 1
Stop.
amiga:
reva: {4} file pi_css5
pi_css5: ELF 32-bit MSB executable, Motorola 68000, version 1, statically linked, stripped
reva: {5} ./pi_css5
./pi_css5: Exec format error. Binary file not executable.
>How-To-Repeat:
(Try to) compile a kernel on an m68k machine with:
options COMPAT_LINUX
options EXEC_ELF32
and try to run m68k Linux binaries.
>Fix:
None known.
>Release-Note:
>Audit-Trail:
>Unformatted: