diff options
Diffstat (limited to 'libc/tools/check-symbols.py')
-rwxr-xr-x | libc/tools/check-symbols.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/tools/check-symbols.py b/libc/tools/check-symbols.py index 0922548..a217ff7 100755 --- a/libc/tools/check-symbols.py +++ b/libc/tools/check-symbols.py @@ -41,10 +41,11 @@ def CheckSymbols(library, functions_or_variables): for line in subprocess.check_output(['readelf', '--dyn-syms', so_file]).split('\n'): m = r.match(line) if m: + symbol = string.split(m.group(2), '@')[0] if m.group(1) == 'FUNC' and functions_or_variables == 'functions': - actual_symbols.add(m.group(2)) + actual_symbols.add(symbol) elif m.group(1) == 'OBJECT' and functions_or_variables == 'variables': - actual_symbols.add(m.group(2)) + actual_symbols.add(symbol) #else: #print 'ignoring: ' % line |