bsdi 1.3 KB

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