1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*ae316d1dSXin LI# $File: ibm6000,v 1.16 2024/03/31 15:06:56 christos Exp $ 4b6cee71dSXin LI# ibm6000: file(1) magic for RS/6000 and the RT PC. 5b6cee71dSXin LI# 6*ae316d1dSXin LI# Update: Joerg Jenderek 7*ae316d1dSXin LI#0 beshort 0x01df executable (RISC System/6000 V3.1) or obj module 8*ae316d1dSXin LI0 beshort 0x01df 9*ae316d1dSXin LI# use subroutine (./coff) to display name+flags+variables for common object formatted files 10*ae316d1dSXin LI>0 use \^display-coff 11b6cee71dSXin LI# Breaks sun4 statically linked execs. 12b6cee71dSXin LI#0 beshort 0x0103 executable (RT Version 2) or obj module 13b6cee71dSXin LI#>2 byte 0x50 pure 14b6cee71dSXin LI#>28 belong >0 not stripped 15b6cee71dSXin LI#>6 beshort >0 - version %ld 1643a5ec4eSXin LI# GRR: line below is too general as it matches also TTComp archive, ASCII, 1K handled by ./archive 17b6cee71dSXin LI0 beshort 0x0104 shared library 1843a5ec4eSXin LI# GRR: line below is too general as it matches also TTComp archive, ASCII, 2K handled by ./archive 19b6cee71dSXin LI0 beshort 0x0105 ctab data 20b6cee71dSXin LI0 beshort 0xfe04 structured file 21b6cee71dSXin LI0 string 0xabcdef AIX message catalog 22b6cee71dSXin LI0 belong 0x000001f9 AIX compiled message catalog 23b6cee71dSXin LI0 string \<aiaff> archive 24b6cee71dSXin LI0 string \<bigaf> archive (big format) 2548c779cdSXin LI0 belong 0x09006bea AIX backup/restore format file 2648c779cdSXin LI0 belong 0x09006fea AIX backup/restore format file 27b6cee71dSXin LI 28b6cee71dSXin LI0 beshort 0x01f7 64-bit XCOFF executable or object module 29b6cee71dSXin LI>20 belong 0 not stripped 30b6cee71dSXin LI# GRR: this test is still too general as it catches also many FATs of DOS filesystems 31b6cee71dSXin LI4 belong &0x0feeddb0 32b6cee71dSXin LI# real core dump could not be 32-bit and 64-bit together 33b6cee71dSXin LI>7 byte&0x03 !3 AIX core file 34b6cee71dSXin LI>>1 byte &0x01 fulldump 35b6cee71dSXin LI>>7 byte &0x01 32-bit 36b6cee71dSXin LI>>>0x6e0 string >\0 \b, %s 37b6cee71dSXin LI>>7 byte &0x02 64-bit 38b6cee71dSXin LI>>>0x524 string >\0 \b, %s 39