Date: Sat, 8 May 2010 22:20:03 GMT From: Nathan Whitehorn <nwhitehorn@freebsd.org> To: freebsd-sparc64@FreeBSD.org Subject: Re: sparc64/146387: 'file' command on sparc64 doesn't interpret sparc64 (V9) executables Message-ID: <201005082220.o48MK3eP010771@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR sparc64/146387; it has been noted by GNATS. From: Nathan Whitehorn <nwhitehorn@freebsd.org> To: Yuri <yuri@tsoft.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005082220.o48MK3eP010771>
