Skip to content
Snippets Groups Projects
Commit 63a9c774 authored by Simon McVittie's avatar Simon McVittie
Browse files

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


I had hoped that dlsym() and dlvsym() would find these special symbols,
but in fact they don't. To check for ABI compatibility we need to look
for specific symbols, like __atomic_load_1@LIBATOMIC_1.0.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent bbb7df0d
No related branches found
No related tags found
1 merge request!113inspect-library: Ignore symbols like LIBATOMIC_1.0@LIBATOMIC_1.0
Pipeline #2701 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment