diff options
author | Kees Cook <keescook@chromium.org> | 2016-10-31 20:40:13 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2016-10-31 20:40:13 +0300 |
commit | da7389ac6c83e7aa8b04ebe5ba546df2a7873c5c (patch) | |
tree | 564b1c302c5bca487aafcaacc70baa049f12b8b2 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 07d9a380680d1c0eb51ef87ff2eab5c994949e69 (diff) | |
download | linux-da7389ac6c83e7aa8b04ebe5ba546df2a7873c5c.tar.xz |
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/cyc_complexity_plugin.c')
-rw-r--r-- | scripts/gcc-plugins/cyc_complexity_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gcc-plugins/cyc_complexity_plugin.c b/scripts/gcc-plugins/cyc_complexity_plugin.c index 34df974c6ba3..8af7db06122d 100644 --- a/scripts/gcc-plugins/cyc_complexity_plugin.c +++ b/scripts/gcc-plugins/cyc_complexity_plugin.c @@ -20,7 +20,7 @@ #include "gcc-common.h" -int plugin_is_GPL_compatible; +__visible int plugin_is_GPL_compatible; static struct plugin_info cyc_complexity_plugin_info = { .version = "20160225", @@ -49,7 +49,7 @@ static unsigned int cyc_complexity_execute(void) #include "gcc-generate-gimple-pass.h" -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) { const char * const plugin_name = plugin_info->base_name; struct register_pass_info cyc_complexity_pass_info; |