Subject: bin/4230: file(1) misidentifies mips3 binaries as basic-16 executables
To: None <>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: netbsd-bugs
Date: 10/06/1997 14:44:43
>Number:         4230
>Category:       bin
>Synopsis:       file(1) misidentifies mips3 binaries as basic-16 executables
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct  6 14:50:02 1997
>Originator:     Jonathan Stone
>Release:        19971006
System: NetBSD Reno.DSG.Stanford.EDU 1.2G NetBSD 1.2G (GENERIC) #19: Sat Aug 30 01:09:13 PDT 1997 jonathan@Reno.DSG.Stanford.EDU:/reno/compile/GENERIC pmax

	Find a mips3 ECOFF (or elf? binary).
	Run file(1) on it.
	Observe that file(1)  reports the mips3 ECOFF file is
	a basic-16 executable.

>From an Ultrix ``hello, world'' compiled with gcc -mips3,
reported by Simon Burge (, and GNU
binutils 2.8.1:

	Reno> objdump --file-headers part1
	part1:     file format ecoff-littlemips
	architecture: mips:4000, flags 0x00000132:
	start address 0x00000000004005c0
	Reno> file part1
	part1: basic-16 executable not stripped

	see above.


Fix the entries in /etc/magic.
I have no idea what's the best or most acceptable way.