Bug 25498

Summary: file(1) no longer recognizes the ABI of an ELF file
Product: Base System Reporter: Jim.Pirzyk <Jim.Pirzyk>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: obrien
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jim.Pirzyk 2001-03-02 23:20:01 UTC
	In FreeBSD 3.x systems, file would tell you what the ABI for an ELF file
	was.  It would look like this:

	foo: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped

	Where the 'FreeBSD' string was branded in the binary by the brandelf
	command.  Now in FreeBSD 4.x systems, brandelf sets the 7th byte of
	the file to be 9, which means FreeBSD ABI, and does NOT put the 'FreeBSD'
	string into the file.  The file(1) command has not been updated to 
	reflect this change.

How-To-Repeat: 
	On a FreeBSD ELF binary, run the file(1) command on it, the output would
	look like this:

	foo: ELF 32-bit LSB executable, Intel 80386, version 1 , dynamically linked, not stripped
Comment 1 David E. O'Brien freebsd_committer freebsd_triage 2001-03-03 02:36:28 UTC
State Changed
From-To: open->closed

FreeBSD now uses the stock standard file(1) implimentation from 
Christos Zoulas <christos@gw.com>.  This problem needs to be reported to 
him and it will enter the FreeBSD tree on his next update.