Author: luporl
Date: Fri Jun 28 15:52:40 2019
New Revision: 349509
URL: https://svnweb.freebsd.org/changeset/base/349509

Log:
  [PowerPC64] Add ABI flags to 'file' magic
  
  The distinction between ELF header version and OpenPOWER ELF ABI version is
  confusing for most of people, so this adds text to "file" output to make it
  clear about which OpenPOWER ELF ABI version binary was built for.
  
  The strings used in this change are based on "64-Bit ELF V2 ABI
  Specification/3.1. ELF Header" document available at
  
http://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/dbdoclet.50655241_97607.html
  
  Example:
  
  $ file t1-Flag2 -m -m contrib/file/magic/Magdir/elf t1-Flag2: ELF 64-bit MSB
  executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI, version 1
  (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD
  13.0 (1300033), FreeBSD-style, not stripped
  
  Submitted by: alfredo.junior_eldorado.org.br
  Reviewed by:  luporl
  Differential Revision:        https://reviews.freebsd.org/D20771

Modified:
  head/contrib/file/magic/Magdir/elf

Modified: head/contrib/file/magic/Magdir/elf
==============================================================================
--- head/contrib/file/magic/Magdir/elf  Fri Jun 28 15:49:14 2019        
(r349508)
+++ head/contrib/file/magic/Magdir/elf  Fri Jun 28 15:52:40 2019        
(r349509)
@@ -108,6 +108,9 @@
 >18    leshort         19              Intel 80960,
 >18    leshort         20              PowerPC or cisco 4500,
 >18    leshort         21              64-bit PowerPC or cisco 7500,
+>>48   lelong          0               Unspecified or Power ELF V1 ABI,
+>>48   lelong          1               Power ELF V1 ABI,
+>>48   lelong          2               OpenPOWER ELF V2 ABI,
 >18    leshort         22              IBM S/390,
 >18    leshort         23              Cell SPU,
 >18    leshort         24              cisco SVIP,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to