dynamically load JavaScriptCore with RTLD_LOCAL option

Reviewed By: tadeuzagallo

Differential Revision: D3703415

fbshipit-source-id: c67865b7fe75c21a3b620dc3a794b5a0005cf71e
This commit is contained in:
Ben Nham 2016-08-13 03:24:44 -07:00 committed by Facebook Github Bot 6
parent de9d22ee7e
commit d22003a0de
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ static void *RCTCustomLibraryHandler(void)
static dispatch_once_t token;
static void *handler;
dispatch_once(&token, ^{
handler = dlopen("@executable_path/Frameworks/JavaScriptCore.framework/JavaScriptCore", RTLD_LAZY);
handler = dlopen("@executable_path/Frameworks/JavaScriptCore.framework/JavaScriptCore", RTLD_LAZY | RTLD_LOCAL);
if (!handler) {
const char *err = dlerror();