diff options
| author | Kostya Serebryany <kcc@google.com> | 2011-12-28 01:08:14 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2011-12-28 01:08:14 +0000 |
| commit | 8b981c25642d3a4319c52aa906a4f45c63f8143e (patch) | |
| tree | 6cc210f6cac749e8a47a8b28d04ca679dd6405e5 /llvm/lib/Transforms | |
| parent | 46c70d33d7b6ece449093d5afa7d7d10b7d1c1ed (diff) | |
| download | bcm5719-llvm-8b981c25642d3a4319c52aa906a4f45c63f8143e.tar.gz bcm5719-llvm-8b981c25642d3a4319c52aa906a4f45c63f8143e.zip | |
The code instrumented with ASan may have its own instance of the
mach_override library.
In this case chances are that functions from it will be called from
mach_override_ptr() during ASan initialization.
This may lead to crashes (if those functions are instrumented) or
incorrect behavior (if the implementations differ).
The attached patch renames mach_override_ptr() into
__asan_mach_override_ptr() and makes the rest of the mach_override
internals hidden.
The corresponding AddressSanitizer bug is
http://code.google.com/p/address-sanitizer/issues/detail?id=22
Patch by glider@google.com
llvm-svn: 147303
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions

