Skip to content
Snippets Groups Projects
Commit fb1a9f17 authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

[nolibc] Make SymbolizerPrepareForSandboxing weak and optional.

Differential Revision: http://llvm-reviews.chandlerc.com/D872

llvm-svn: 182765
parent 0fb90ab0
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,8 @@ void PrepareForSandboxing() {
// cached mappings.
MemoryMappingLayout::CacheMemoryMappings();
// Same for /proc/self/exe in the symbolizer.
SymbolizerPrepareForSandboxing();
if (&SymbolizerPrepareForSandboxing)
SymbolizerPrepareForSandboxing();
}
// ----------------- sanitizer_procmaps.h
......
......@@ -114,7 +114,7 @@ typedef bool (*string_predicate_t)(const char *);
uptr GetListOfModules(LoadedModule *modules, uptr max_modules,
string_predicate_t filter);
void SymbolizerPrepareForSandboxing();
void SymbolizerPrepareForSandboxing() SANITIZER_WEAK_ATTRIBUTE;
} // namespace __sanitizer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment