summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2021-09-15 14:41:34 -0700
committerMarge Bot <eric+marge@anholt.net>2021-09-16 17:38:58 +0000
commit29e3094d1e02bae164fabf73abe3d442b691bb22 (patch)
treea1ad4037a248d5306077bb22c128ab5dd7158c0f /bin
parented794207b51d354c139bc6fa318d7dbc9e7d904f (diff)
downloadmesa-29e3094d1e02bae164fabf73abe3d442b691bb22.tar.gz
mesa-29e3094d1e02bae164fabf73abe3d442b691bb22.tar.bz2
mesa-29e3094d1e02bae164fabf73abe3d442b691bb22.zip
symbols-check: Fix symbol demangling for Windows
Only strip leading underscores if there's also a trailing @ Fixes shared-glapi symbol check for x64 Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12881>
Diffstat (limited to 'bin')
-rw-r--r--bin/symbols-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/symbols-check.py b/bin/symbols-check.py
index 5ebeb861d12..dd36470d768 100644
--- a/bin/symbols-check.py
+++ b/bin/symbols-check.py
@@ -73,7 +73,7 @@ def get_symbols_dumpbin(dumpbin, lib):
continue
symbol_name = fields[3]
# De-mangle symbols
- if symbol_name[0] == '_':
+ if symbol_name[0] == '_' and '@' in symbol_name:
symbol_name = symbol_name[1:].split('@')[0]
symbols.append(symbol_name)
return symbols