Have file recognize PowerPC elf objects. Works for MSB objects currently.
authorrahnds <rahnds@openbsd.org>
Wed, 29 Jan 1997 22:31:46 +0000 (22:31 +0000)
committerrahnds <rahnds@openbsd.org>
Wed, 29 Jan 1997 22:31:46 +0000 (22:31 +0000)
Should work for LSB objects?

usr.bin/file/magdir/elf

index 57f0767..cfab44c 100644 (file)
@@ -31,6 +31,7 @@
 >>18   leshort         7               Intel 80860,
 >>18   leshort         8               MIPS R3000,
 >>18   leshort         9               Amdahl,
+>>18   leshort         20              PowerPC,
 >>20   lelong          0               invalid version
 >>20   lelong          1               version 1
 >>36   lelong          1               MathCoPro/FPU/MAU Required
@@ -50,6 +51,7 @@
 >>18   beshort         6               Intel 80486 - invalid byte order,
 >>18   beshort         7               Intel 80860,
 >>18   beshort         8               MIPS R3000,
+>>18   beshort         20              PowerPC,
 >>18   leshort         9               Amdahl,
 >>20   belong          0               invalid version
 >>20   belong          1               version 1