Subject: port-pmax/6545: file(1) reports invalid byte order for DECStation binaries
To: None <gnats-bugs@gnats.netbsd.org>
From: None <agrier@poofy.goof.com>
List: netbsd-bugs
Date: 12/08/1998 00:02:52
>Number: 6545
>Category: port-pmax
>Synopsis: file(1) reports invalid byte order for DECStation binaries
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 8 00:05:01 1998
>Last-Modified:
>Originator: Aaron J. Grier
>Organization:
>Release: 1.3 and file <= 3.26
>Environment:
>Description:
file(1) reports invalid byte order for DECStation binaries
compiled with gcc. DECStations are Little Endian, but file
reports files as "MIPS R3000_BE - invalid byte order."
>How-To-Repeat:
run file on any gcc compiled file on a DECStation:
goldberry:~$ file /bin/sh
/bin/sh: ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte
order, version 1, statically linked, stripped
>Fix:
Fix the magic (5) database, I imagine, though maybe there's a problem
with the source for the file command with regard to endianness.
>Audit-Trail:
>Unformatted:
>System: NetBSD goldberry 1.3H NetBSD 1.3H (sys) #24: Sun Oct 25 14:36:22 PST 1998 agrier@goldberry:/usr/local/src/NetBSD/src/sys pmax