diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-05 19:26:52 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-05 19:26:52 +0000 |
commit | e6f22d1cfb27764e5e428c2ac853ae5c5c7f8ef9 (patch) | |
tree | c1702d15e554b8b1124bb23875487e3d940edee2 /usr.bin/file | |
parent | a3554dc700c3da72cc805a98e779144f1d9ade14 (diff) | |
download | FreeBSD-src-e6f22d1cfb27764e5e428c2ac853ae5c5c7f8ef9.zip FreeBSD-src-e6f22d1cfb27764e5e428c2ac853ae5c5c7f8ef9.tar.gz |
New magic file with more politically correct identification of objects
and execs.
Submitted-By: Brent Nordquist <nordquis@winternet.com>
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/Magdir/freebsd | 90 |
1 files changed, 78 insertions, 12 deletions
diff --git a/usr.bin/file/Magdir/freebsd b/usr.bin/file/Magdir/freebsd index d326eb6..68a8e00 100644 --- a/usr.bin/file/Magdir/freebsd +++ b/usr.bin/file/Magdir/freebsd @@ -1,19 +1,85 @@ -# the following are for 386BSD/FreeBSD - -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 +# the following are for BSD/i386 (FreeBSD, NetBSD, etc.) + +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 + +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 -# This covers object files, and is better than "PDP-11 executable" -0 lelong 000000407 impure format +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 |