Skip to content
Snippets Groups Projects

inspect-library: Ignore symbols like LIBATOMIC_1.0@LIBATOMIC_1.0

Merged Simon McVittie requested to merge wip/smcv/versioned-symbols into master
1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
+ 7
1
@@ -329,7 +329,13 @@ main (int argc,
}
else
{
if (!has_versioned_symbol (handle, symbol, version))
if (strcmp (symbol, version) == 0)
{
/* Ignore: dlsym() and dlvsym() don't find the
* special symbol representing the version itself,
* because it is neither data nor code. */
}
else if (!has_versioned_symbol (handle, symbol, version))
{
char * merged_string;
asprintf_or_die (&merged_string, "%s@%s", symbol, version);
Loading