1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*ae316d1dSXin LI# $File: bsdi,v 1.9 2024/03/31 15:06:56 christos Exp $ 4b6cee71dSXin LI# bsdi: file(1) magic for BSD/OS (from BSDI) objects 5b6cee71dSXin LI# Some object/executable formats use the same magic numbers as are used 6b6cee71dSXin LI# in other OSes; those are handled by entries in aout. 7b6cee71dSXin LI# 8b6cee71dSXin LI 9*ae316d1dSXin LI0 lelong 0314 i386 compact demand paged pure executable 10b6cee71dSXin LI>16 lelong >0 not stripped 11b6cee71dSXin LI>32 byte 0x6a (uses shared libs) 12b6cee71dSXin LI 13*ae316d1dSXin LI# Update: Joerg Jenderek 14b6cee71dSXin LI# same as in SunOS 4.x, except for static shared libraries 15*ae316d1dSXin LI# Note: was also called "a.out SunOS SPARC demand paged" by ./sun v 1.28 16b6cee71dSXin LI0 belong&077777777 0600413 SPARC demand paged 17b6cee71dSXin LI>0 byte &0x80 18b6cee71dSXin LI>>20 belong <4096 shared library 19b6cee71dSXin LI>>20 belong =4096 dynamically linked executable 20b6cee71dSXin LI>>20 belong >4096 dynamically linked executable 21*ae316d1dSXin LI#!:mime application/x-foo-executable 22*ae316d1dSXin LI# typically no file name suffix for executables 23*ae316d1dSXin LI!:ext / 24b6cee71dSXin LI>0 byte ^0x80 executable 25b6cee71dSXin LI>16 belong >0 not stripped 26b6cee71dSXin LI>36 belong 0xb4100001 (uses shared libs) 27b6cee71dSXin LI 28b6cee71dSXin LI0 belong&077777777 0600410 SPARC pure 29b6cee71dSXin LI>0 byte &0x80 dynamically linked executable 30b6cee71dSXin LI>0 byte ^0x80 executable 31b6cee71dSXin LI>16 belong >0 not stripped 32b6cee71dSXin LI>36 belong 0xb4100001 (uses shared libs) 33b6cee71dSXin LI 34b6cee71dSXin LI0 belong&077777777 0600407 SPARC 35b6cee71dSXin LI>0 byte &0x80 dynamically linked executable 36b6cee71dSXin LI>0 byte ^0x80 executable 37b6cee71dSXin LI>16 belong >0 not stripped 38b6cee71dSXin LI>36 belong 0xb4100001 (uses shared libs) 39