[patch] pull out Blackfin ELF headers

Mike Frysinger vapier at gentoo.org
Sat Mar 15 05:07:51 EET 2008


this patch decodes a few important bits in the Blackfin ELF header
-mike

diff --git a/magic/Magdir/elf b/magic/Magdir/elf
index 464b436..5442993 100644
--- a/magic/Magdir/elf
+++ b/magic/Magdir/elf
@@ -102,6 +102,8 @@
 >>18	leshort		94		Tensilica Xtensa,
 >>18	leshort		97		NatSemi 32k,
 >>18	leshort		106		Analog Devices Blackfin,
+>>>36	byte&0x1	0x1		PIC,
+>>>36	byte&0x2	0x2		FDPIC,
 >>18	leshort		0x9026		Alpha (unofficial),
 >>20	lelong		0		invalid version
 >>20	lelong		1		version 1



More information about the File mailing list