2 #------------------------------------------------------------------------------
3 # $File: hitachi-sh,v 1.8 2017/03/17 21:35:28 christos Exp $
4 # hitach-sh: file(1) magic for Hitachi Super-H
8 # updated by Joerg Jenderek at Oct 2015
9 # https://en.wikipedia.org/wiki/COFF
10 # https://de.wikipedia.org/wiki/Common_Object_File_Format
11 # http://www.delorie.com/djgpp/doc/coff/filhdr.html
12 # below test line conflicts with 2nd NTFS filesystem sector
13 # 2nd NTFS filesystem sector often starts with 0x05004e00 for unicode string 5 NTLDR
14 # and Portable Gaming Notation Compressed format (*.WID http://pgn.freeservers.com/)
16 # test for unused flag bits (0x8000,0x0800,0x0400,0x0200,x0080) in f_flags
18 # use big endian variant of subroutine to display name+variables+flags
19 # for common object formated files
20 >>0 use \^display-coff
23 # test for unused flag bits in f_flags
25 # use little endian variant of subroutine to
26 # display name+variables+flags for common object formated files