diff options
author | Kees Cook <keescook@chromium.org> | 2016-10-31 18:40:13 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2016-10-31 18:40:13 +0100 |
commit | da7389ac6c83e7aa8b04ebe5ba546df2a7873c5c (patch) | |
tree | 564b1c302c5bca487aafcaacc70baa049f12b8b2 /scripts/gcc-plugins/gcc-common.h | |
parent | Linux 4.9-rc2 (diff) | |
download | linux-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/gcc-common.h')
-rw-r--r-- | scripts/gcc-plugins/gcc-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h index 172850bcd0d9..950fd2e64bb7 100644 --- a/scripts/gcc-plugins/gcc-common.h +++ b/scripts/gcc-plugins/gcc-common.h @@ -130,6 +130,7 @@ extern void dump_gimple_stmt(pretty_printer *, gimple, int, int); #endif #define __unused __attribute__((__unused__)) +#define __visible __attribute__((visibility("default"))) #define DECL_NAME_POINTER(node) IDENTIFIER_POINTER(DECL_NAME(node)) #define DECL_NAME_LENGTH(node) IDENTIFIER_LENGTH(DECL_NAME(node)) |