mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
07d9a38068
commit
da7389ac6c
4 changed files with 8 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue