summaryrefslogtreecommitdiff
path: root/usr.bin/file/magdir/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/file/magdir/gcc')
-rw-r--r--usr.bin/file/magdir/gcc17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.bin/file/magdir/gcc b/usr.bin/file/magdir/gcc
new file mode 100644
index 00000000000..f2c72541200
--- /dev/null
+++ b/usr.bin/file/magdir/gcc
@@ -0,0 +1,17 @@
+# $OpenBSD: gcc,v 1.1 2004/06/03 03:14:20 tedu Exp $
+
+#------------------------------------------------------------------------------
+# gcc: file(1) magic for GCC special files
+#
+0 string gpch GCC precompiled header
+
+# The version field is annoying. It's 3 characters, not zero-terminated.
+>5 byte x (version %c
+>6 byte x \b%c
+>7 byte x \b%c)
+
+# 67 = 'C', 111 = 'o', 43 = '+', 79 = 'O'
+>4 byte 67 for C
+>4 byte 111 for Objective C
+>4 byte 43 for C++
+>4 byte 79 for Objective C++