forked from OSchip/llvm-project
[sanitizer] Disable call wrapping when building for Go.
llvm-svn: 197232
This commit is contained in:
parent
3a4fe36916
commit
a643a754be
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue