+2005-08-24 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_versym): Versioned symbols should not have
+ local binding.
+
2005-08-15 Ulrich Drepper <drepper@redhat.com>
* elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be
}
else if (*versym != VER_NDX_LOCAL)
{
+ /* Versioned symbol. Make sure it is not defined as local. */
+ if (!gnuld && GELF_ST_BIND (sym->st_info) == STB_LOCAL)
+ ERROR (gettext ("\
+section [%2d] '%s': symbol %d: local symbol with version\n"),
+ idx, section_name (ebl, idx), cnt);
+
/* Look through the list of defined versions and locate the
index we need for this symbol. */
struct version_namelist *runp = version_namelist;