New magic file with more politically correct identification of objects

and execs.
Submitted-By: Brent Nordquist <nordquis@winternet.com>
This commit is contained in:
Jordan K. Hubbard 1996-07-05 19:26:52 +00:00
parent d805b866fa
commit 86ff3944a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16982

View file

@ -1,19 +1,85 @@
# the following are for 386BSD/FreeBSD
# the following are for BSD/i386 (FreeBSD, NetBSD, etc.)
0 lelong 0410 pure executable
0 lelong 0413 demand paged executable
0 lelong&077777777 041400314 FreeBSD/i386 demand paged
>3 byte &0x80
>>20 lelong <4096 shared library
>>20 lelong =4096 dynamically linked executable
>>20 lelong >4096 dynamically linked executable
>3 byte ^0x80 executable
0 lelong&0377777777 041400407 BSD/i386
>20 lelong <4096
>>3 byte&0xC0 &0x80 shared library
>>3 byte&0xC0 0x40 PIC object
>>3 byte&0xC0 0x00 object
>20 lelong >4095
>>3 byte&0x80 0x80 dynamically linked executable
>>3 byte&0x80 0x00 executable
>16 lelong >0 not stripped
# This covers object files, and is better than "PDP-11 executable"
0 lelong 000000407 impure format
0 lelong&0377777777 041400410 BSD/i386 pure
>20 lelong <4096
>>3 byte&0xC0 &0x80 shared library
>>3 byte&0xC0 0x40 PIC object
>>3 byte&0xC0 0x00 object
>20 lelong >4095
>>3 byte&0x80 0x80 dynamically linked executable
>>3 byte&0x80 0x00 executable
>16 lelong >0 not stripped
0 lelong&0377777777 041400413 BSD/i386 demand paged
>20 lelong <4096
>>3 byte&0xC0 &0x80 shared library
>>3 byte&0xC0 0x40 PIC object
>>3 byte&0xC0 0x00 object
>20 lelong >4095
>>3 byte&0x80 0x80 dynamically linked executable
>>3 byte&0x80 0x00 executable
>16 lelong >0 not stripped
0 lelong&0377777777 041400314 BSD/i386 compact demand paged
>20 lelong <4096
>>3 byte&0xC0 &0x80 shared library
>>3 byte&0xC0 0x40 PIC object
>>3 byte&0xC0 0x00 object
>20 lelong >4095
>>3 byte&0x80 0x80 dynamically linked executable
>>3 byte&0x80 0x00 executable
>16 lelong >0 not stripped
0 belong&0377777777 041400407 BSD/i386
>20 belong <4096
>>0 byte&0xC0 &0x80 shared library
>>0 byte&0xC0 0x40 PIC object
>>0 byte&0xC0 0x00 object
>20 belong >4095
>>0 byte&0x80 0x80 dynamically linked executable
>>0 byte&0x80 0x00 executable
>16 belong >0 not stripped
0 belong&0377777777 041400410 BSD/i386 pure
>20 belong <4096
>>0 byte&0xC0 &0x80 shared library
>>0 byte&0xC0 0x40 PIC object
>>0 byte&0xC0 0x00 object
>20 belong >4095
>>0 byte&0x80 0x80 dynamically linked executable
>>0 byte&0x80 0x00 executable
>16 belong >0 not stripped
0 belong&0377777777 041400413 BSD/i386 demand paged
>20 belong <4096
>>0 byte&0xC0 &0x80 shared library
>>0 byte&0xC0 0x40 PIC object
>>0 byte&0xC0 0x00 object
>20 belong >4095
>>0 byte&0x80 0x80 dynamically linked executable
>>0 byte&0x80 0x00 executable
>16 belong >0 not stripped
0 belong&0377777777 041400314 BSD/i386 compact demand paged
>20 belong <4096
>>0 byte&0xC0 &0x80 shared library
>>0 byte&0xC0 0x40 PIC object
>>0 byte&0xC0 0x00 object
>20 belong >4095
>>0 byte&0x80 0x80 dynamically linked executable
>>0 byte&0x80 0x00 executable
>16 belong >0 not stripped
# XXX gross hack to identify core files
# cores start with a struct tss; we take advantage of the following:
# byte 7: highest byte of the kernel stack pointer, always 0xfe