summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-05-06 00:29:57 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-05-06 00:29:57 +0000
commitce2909661449e09d5cb67d08cf6a27650a92747a (patch)
tree2705bdee26d4d2ee30c8f277ab244d460b6274fb
parent0b4c484fb9c0e0ae3935800c00cf0d39410374c3 (diff)
downloadbcm5719-llvm-ce2909661449e09d5cb67d08cf6a27650a92747a.tar.gz
bcm5719-llvm-ce2909661449e09d5cb67d08cf6a27650a92747a.zip
[asan] Fix dynamic-runtime tests.
They are not part of check-all :( This change adds sized-delete operators to the version list, and disables the hack that excluded versioned symbols from the dynamic list - this is not an issue in this case. llvm-svn: 236559
-rwxr-xr-xcompiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py b/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
index a5fed7e05cf..c0ee15af111 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
+++ b/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
@@ -23,7 +23,8 @@ import sys
new_delete = set(['_ZdaPv', '_ZdaPvRKSt9nothrow_t',
'_ZdlPv', '_ZdlPvRKSt9nothrow_t',
'_Znam', '_ZnamRKSt9nothrow_t',
- '_Znwm', '_ZnwmRKSt9nothrow_t'])
+ '_Znwm', '_ZnwmRKSt9nothrow_t',
+ '_ZdlPvm', '_ZdaPvm'])
versioned_functions = set(['memcpy', 'pthread_attr_getaffinity_np',
'pthread_cond_broadcast',
@@ -74,7 +75,7 @@ def main(argv):
# We have to avoid exporting the interceptors for versioned library
# functions due to gold internal error.
orig_name = match.group(1)
- if orig_name in function_set and orig_name not in versioned_functions:
+ if orig_name in function_set and (args.version_list or orig_name not in versioned_functions):
result.append(orig_name)
continue
# Export sanitizer interface functions.
OpenPOWER on IntegriCloud