diff --git a/helpers/inspect-library.c b/helpers/inspect-library.c
index 1196bb9a623954cb0f6dc438ae156bf318ca8277..b0d5b895e279fba5710926633d3347ff3ed884cf 100644
--- a/helpers/inspect-library.c
+++ b/helpers/inspect-library.c
@@ -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);