Ignore version string in symbol name
diff --git a/ltrace-elf.c b/ltrace-elf.c
index f94e5fe..810e29a 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -569,7 +569,15 @@
|| sym.st_value == 0)
continue;
- const char *name = strtab + sym.st_name;
+ const char *orig_name = strtab + sym.st_name;
+ const char *version = strchr(orig_name, '@');
+ size_t len = version != NULL ? (assert(version > orig_name),
+ (size_t)(version - orig_name))
+ : strlen(orig_name);
+ char name[len + 1];
+ memcpy(name, orig_name, len);
+ name[len] = 0;
+
if (!filter_matches_symbol(options.static_filter, name, lib))
continue;