summaryrefslogtreecommitdiffstats
path: root/libc/tools
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-06-04 10:12:37 -0700
committerDmitriy Ivanov <dimitry@google.com>2015-06-04 11:15:13 -0700
commit34de7f849799ea47534d617595ab566690a16f2f (patch)
tree7dbce51872bd27aacbd4ac4d4f2ed58c27483218 /libc/tools
parent0c29aabad25832ec249288c8da3cf080c898ba74 (diff)
downloadbionic-34de7f849799ea47534d617595ab566690a16f2f.zip
bionic-34de7f849799ea47534d617595ab566690a16f2f.tar.gz
bionic-34de7f849799ea47534d617595ab566690a16f2f.tar.bz2
Strip version info when extracting symbols
Bug: http://b/20139821 Change-Id: I1c1ed1b97a75936407e996698b98b94a7175ac30 (cherry picked from commit 6cda0742895e46aa4ad0e4e8d5637d166f9f46f2)
Diffstat (limited to 'libc/tools')
-rwxr-xr-xlibc/tools/check-symbols.py5
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