[sanitizer] Disable call wrapping when building for Go.

llvm-svn: 197232
This commit is contained in:
Evgeniy Stepanov 2013-12-13 14:58:21 +00:00
parent 3a4fe36916
commit a643a754be
2 changed files with 3 additions and 1 deletions

View File

@ -484,7 +484,7 @@ const uptr kPthreadDestructorIterations = 0;
// Callback type for iterating over a set of memory ranges.
typedef void (*RangeIteratorCallback)(uptr begin, uptr end, void *arg);
#if SANITIZER_LINUX
#if SANITIZER_LINUX && !defined(SANITIZER_GO)
extern uptr indirect_call_wrapper;
void InitializeIndirectCallWrapping(const char *wrapper_name);

View File

@ -353,12 +353,14 @@ uptr GetListOfModules(LoadedModule *modules, uptr max_modules,
}
#endif // SANITIZER_ANDROID
#ifndef SANITIZER_GO
uptr indirect_call_wrapper;
void InitializeIndirectCallWrapping(const char *wrapper_name) {
CHECK(wrapper_name && *wrapper_name);
indirect_call_wrapper = (uptr)dlsym(RTLD_DEFAULT, wrapper_name);
}
#endif
} // namespace __sanitizer