NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-mips/44375: NetBSD/mips 1.6 binary doesn't work on NetBSD/mips -current

>Number:         44375
>Category:       port-mips
>Synopsis:       NetBSD/mips 1.6 binary doesn't work on NetBSD/mips -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-mips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 12 11:45:00 +0000 2011
>Originator:     Izumi Tsutsui
>Release:        NetBSD 5.99.43

System: NetBSD/pmax 5.99.43 on GXemul and 3MIN, NetBSD/sgimips on O2
Architecture: mips
Machine: confirmed on pmax and sgimips, but maybe affects all mips ports

NetBSD/mips 1.6 binaries doesn't work on recent NetBSD/mips 5.99.43
on a GENERIC kernel with options COMPAT_12 .. 50 due to "Exec format error."

For a quick test:
- install gxemul
- fetch
- gunzip pmax-201101090300Z.img.gz
- gxemul -Xe 3max -d pmax-201101090300Z.img
- in gxemul window:
 login: root
 # /echo-1.6
 /echo-1.6: Exec format error. Wrong Architecture.
 # file /echo-1.6
 /echo-1.6: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), 
statically linked, for NetBSD, stripped
 # uname -a
 NetBSD  5.99.43 NetBSD 5.99.43 (GENERIC) #0: Sun Jan  9 03:13:28 UTDC 2011

- Dynamic linked binares don't work either.
- Also happens on NetBSD/pmax on real 3MIN (R3000)
  and NetBSD/sgmips real O2 (R5000).
- Works fine on NetBSD/sgimips 5.99.22 kernel on the same O2.

Check arch/mips/mips/cpu_exec.c etc?

Izumi Tsutsui

 Fetched from HEAD/201101090300Z on daily build

Home | Main Index | Thread Index | Old Index