Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 823e508

Browse files
committedMar 24, 2025·
[wpeview] Use mangled C++ names for entrypoints
Use the C++ mangled named for the WebKit::WebProcessMain() and WebKit::NetworkProcessMain() functions, instead of the ones with the android_ prefix. This will allow dropping a patch on top of vanilla WPE WebKit that added the android_WebProcess_main() and android_NetworkProcess_main() symbols. The only additional thing those wrappers did was sending the list of arguments to the Android log, for debugging purposes, but that may be re-added at a later time inside initializeNativeMain() without needing to modify WPE WebKit.
1 parent 3faa679 commit 823e508

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎wpeview/src/main/cpp/Service/EntryPoint.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ void initializeNativeMain(JNIEnv* /*env*/, jclass /*klass*/, jlong pid, jint typ
5151
static constexpr const char* const processName[static_cast<int>(ProcessType::TypesCount)]
5252
= {"WPEWebProcess", "WPENetworkProcess", "WPEWebDriverProcess"};
5353

54+
// Mangled C++ symbols for WebKit::{Web,Network}ProcessMain(int, char**)
5455
static constexpr const char* const entrypointName[static_cast<int>(ProcessType::TypesCount)]
55-
= {"android_WebProcess_main", "android_NetworkProcess_main", "android_WebDriverProcess_main"};
56+
= {"_ZN6WebKit14WebProcessMainEiPPc", "_ZN6WebKit18NetworkProcessMainEiPPc", "android_WebDriverProcess_main"};
5657

5758
using ProcessEntryPoint = int(int, char**);
5859
auto* entrypoint

0 commit comments

Comments
 (0)
Please sign in to comment.