diff options
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 0be7fa3a..b172111 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -454,6 +454,10 @@ is_visible_from_outside (struct ld_plugin_symbol *lsym, asection *section, return TRUE; if (link_info.export_dynamic || link_info.shared) { + /* Check if symbol is hidden by version script. */ + if (bfd_hide_sym_by_version (link_info.version_info, + blhe->root.string)) + return FALSE; /* Only ELF symbols really have visibility. */ if (bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour) { |