diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-11-05 17:21:04 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-11-05 17:21:04 +0000 |
commit | 7e3c657f4ae423f9cf244a29253ae59f93c7e8bc (patch) | |
tree | b4be325373f675caa0106cd5d424e865f59bdb57 /compiler-rt/lib/dfsan/scripts/build-libc-list.py | |
parent | a1099840ff5b2f7e5ce68d617d13421a9a639a52 (diff) | |
download | bcm5719-llvm-7e3c657f4ae423f9cf244a29253ae59f93c7e8bc.tar.gz bcm5719-llvm-7e3c657f4ae423f9cf244a29253ae59f93c7e8bc.zip |
[dfsan] Modify build-libc-list.py to filter out local functions in generated
ABI list.
llvm-svn: 221361
Diffstat (limited to 'compiler-rt/lib/dfsan/scripts/build-libc-list.py')
-rwxr-xr-x | compiler-rt/lib/dfsan/scripts/build-libc-list.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/dfsan/scripts/build-libc-list.py b/compiler-rt/lib/dfsan/scripts/build-libc-list.py index eb4c619baa1..eddb6c07e99 100755 --- a/compiler-rt/lib/dfsan/scripts/build-libc-list.py +++ b/compiler-rt/lib/dfsan/scripts/build-libc-list.py @@ -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) |