[compiler-rt] r221361 - [dfsan] Modify build-libc-list.py to filter out local functions in generated
Peter Collingbourne
peter at pcc.me.uk
Wed Nov 5 09:21:04 PST 2014
Author: pcc
Date: Wed Nov 5 11:21:04 2014
New Revision: 221361
URL: http://llvm.org/viewvc/llvm-project?rev=221361&view=rev
Log:
[dfsan] Modify build-libc-list.py to filter out local functions in generated
ABI list.
Modified:
compiler-rt/trunk/lib/dfsan/scripts/build-libc-list.py
Modified: compiler-rt/trunk/lib/dfsan/scripts/build-libc-list.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/dfsan/scripts/build-libc-list.py?rev=221361&r1=221360&r2=221361&view=diff
==============================================================================
--- compiler-rt/trunk/lib/dfsan/scripts/build-libc-list.py (original)
+++ compiler-rt/trunk/lib/dfsan/scripts/build-libc-list.py Wed Nov 5 11:21:04 2014
@@ -26,6 +26,7 @@ def defined_function_list(object):
raise subprocess.CalledProcessError(readelf_proc.returncode, 'readelf')
for line in readelf:
if (line[31:35] == 'FUNC' or line[31:36] == 'IFUNC') and \
+ line[39:44] != 'LOCAL' and \
line[55:58] != 'UND':
function_name = line[59:].split('@')[0]
functions.append(function_name)
More information about the llvm-commits
mailing list