about summary refs log tree commit diff
path: root/gcc_plugin/afl-gcc-pass.so.cc
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-05-29 12:10:45 +0200
committerhexcoder- <heiko@hexco.de>2020-05-29 12:10:45 +0200
commit9c286da29bb76e4d9353b9a2a44b8f001ffe4890 (patch)
treebcca451d5ac3fd417543a01c0afe17bb4b88d622 /gcc_plugin/afl-gcc-pass.so.cc
parent92b7974f4407b105c597c65e3da5010a4e4c4782 (diff)
downloadafl++-9c286da29bb76e4d9353b9a2a44b8f001ffe4890.tar.gz
gcc_plugin: better error message when compiler and plugin versions do not match
Diffstat (limited to 'gcc_plugin/afl-gcc-pass.so.cc')
-rw-r--r--gcc_plugin/afl-gcc-pass.so.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc_plugin/afl-gcc-pass.so.cc b/gcc_plugin/afl-gcc-pass.so.cc
index e6a4a766..d9954762 100644
--- a/gcc_plugin/afl-gcc-pass.so.cc
+++ b/gcc_plugin/afl-gcc-pass.so.cc
@@ -49,7 +49,7 @@
 
 #define BUILD_INLINE_INST
 
-#include "../config.h"
+#include "../include/config.h"
 #include "../include/debug.h"
 
 /* clear helper macros AFL types pull in, which intervene with gcc-plugin
@@ -502,7 +502,7 @@ int plugin_is_GPL_compatible = 1;
 
 static struct plugin_info afl_plugin_info = {
 
-    .version = "20191015",
+    .version = "20200519",
     .help = "AFL++ gcc plugin\n",
 
 };
@@ -528,7 +528,7 @@ int plugin_init(struct plugin_name_args *  plugin_info,
 
   if (!plugin_default_version_check(version, &gcc_version)) {
 
-    FATAL(G_("Incompatible gcc/plugin versions!"));
+    FATAL(G_("Incompatible gcc/plugin versions! Expected GCC %d.%d"), GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR);
 
   }