summaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-10-31 18:40:13 +0100
committerKees Cook <keescook@chromium.org>2016-10-31 18:40:13 +0100
commitda7389ac6c83e7aa8b04ebe5ba546df2a7873c5c (patch)
tree564b1c302c5bca487aafcaacc70baa049f12b8b2 /scripts/gcc-plugins/sancov_plugin.c
parentLinux 4.9-rc2 (diff)
downloadlinux-da7389ac6c83e7aa8b04ebe5ba546df2a7873c5c.tar.xz
linux-da7389ac6c83e7aa8b04ebe5ba546df2a7873c5c.zip
gcc-plugins: Export symbols needed by gcc
This explicitly exports symbols that gcc expects from plugins. Based on code from Emese Revfy. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
-rw-r--r--scripts/gcc-plugins/sancov_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gcc-plugins/sancov_plugin.c b/scripts/gcc-plugins/sancov_plugin.c
index aedd6113cb73..7ea0b3f50739 100644
--- a/scripts/gcc-plugins/sancov_plugin.c
+++ b/scripts/gcc-plugins/sancov_plugin.c
@@ -21,7 +21,7 @@
#include "gcc-common.h"
-int plugin_is_GPL_compatible;
+__visible int plugin_is_GPL_compatible;
tree sancov_fndecl;
@@ -86,7 +86,7 @@ static void sancov_start_unit(void __unused *gcc_data, void __unused *user_data)
#endif
}
-int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
+__visible int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
{
int i;
struct register_pass_info sancov_plugin_pass_info;