-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overhaul SymbolLoader #280
Conversation
429527e
to
7839e29
Compare
#endif | ||
} else { | ||
baseUrl = [[NSBundle mainBundle] privateFrameworksURL]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share some frameworks that would need this? I'm just wondering how this is helpful, because I don't remember having anything similar before. Or are these the embeded frameworks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is supposed to handle embedded frameworks that export functions and other symbols. They've worked up to now, yes, but they've relied on the RTLD_GLOBAL
fallback.
7839e29
to
448f00a
Compare
@@ -6,75 +6,146 @@ | |||
// Copyright (c) 2014 г. Telerik. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also rename the license header from SymbolLoader.cpp
to SymbolLoader.mm
if you want :D
448f00a
to
935e638
Compare
} | ||
NSURL* bundleUrl = [NSURL URLWithString:frameworkPathStr relativeToURL:baseUrl]; | ||
WTF::RetainPtr<CFBundleRef> bundle = adoptCF(CFBundleCreate(kCFAllocatorDefault, (CFURLRef)bundleUrl)); | ||
WTF::dataLogF("NativeScript loaded bundle %s", bundleUrl.absoluteString.UTF8String); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could append '\n' at the end to make it more clear.
This branch seems to crash on our tests when the |
e9fabc2
to
41f27ab
Compare
Make SymbolLoader cache by the ModuleMeta pointer, which is unique. SymbolLoader now supports embedded frameworks. Stubbed support for dylibs.
41f27ab
to
a215614
Compare
Accelerate and Metal report themselves as non-system frameworks so this failed the isSystem check and resulted in paths to bundles that aren't there. I've added nil guards for |
👍 |
…undle-caching Overhaul SymbolLoader
Make SymbolLoader cache by the ModuleMeta pointer, which is unique.
SymbolLoader now supports embedded frameworks.
Stubbed support for dylibs.
Fixes #273