From owner-freebsd-sparc64@FreeBSD.ORG Sat May 8 22:20:04 2010 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 038D4106566B for ; Sat, 8 May 2010 22:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E77AA8FC08 for ; Sat, 8 May 2010 22:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o48MK3j6010773 for ; Sat, 8 May 2010 22:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o48MK3eP010771; Sat, 8 May 2010 22:20:03 GMT (envelope-from gnats) Date: Sat, 8 May 2010 22:20:03 GMT Message-Id: <201005082220.o48MK3eP010771@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Nathan Whitehorn Cc: Subject: Re: sparc64/146387: 'file' command on sparc64 doesn't interpret sparc64 (V9) executables X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nathan Whitehorn List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 May 2010 22:20:04 -0000 The following reply was made to PR sparc64/146387; it has been noted by GNATS. From: Nathan Whitehorn To: Yuri Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: sparc64/146387: 'file' command on sparc64 doesn't interpret sparc64 (V9) executables Date: Sat, 08 May 2010 18:19:49 -0400 Yuri wrote: > Description: > > On sparc64: > >> file `which file` >> > /usr/bin/file: ERROR: ELF 64-bit MSB executable, SPARC V9, relaxed memory ordering, version 1 (FreeBSD), statically linkederror reading (File too large) > > But when I try 'file' from i386 it correctly recognizes sparc64 executables. > This same thing happens on 64-bit PowerPC, and on all big-endian systems (32 or 64 bit) when running file on 64-bit big-endian ELF files. It looks like an endian bug in libmagic. -Nathan