From 7e3c657f4ae423f9cf244a29253ae59f93c7e8bc Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 5 Nov 2014 17:21:04 +0000 Subject: [PATCH] [dfsan] Modify build-libc-list.py to filter out local functions in generated ABI list. llvm-svn: 221361 --- compiler-rt/lib/dfsan/scripts/build-libc-list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/dfsan/scripts/build-libc-list.py b/compiler-rt/lib/dfsan/scripts/build-libc-list.py index eb4c619b..eddb6c0 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) -- 2.7.4