/* Only do this if emitting a shared object and versioning is in place. */
if (link_info.shared
- && (lang_elf_version_info != NULL || link_info.create_default_symver))
+ && (link_info.version_info != NULL
+ || link_info.create_default_symver))
{
struct bfd_elf_version_expr *globals = NULL, *locals = NULL;
struct bfd_elf_version_tree *basever;