To detect the correct function name based on the list of available symbols instead of based on the SDK version
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
source/Plugins/Platform/Android/PlatformAndroid.cpp | ||
---|---|---|
376–378 ↗ | (On Diff #110142) | (nit): Formatting |
384 ↗ | (On Diff #110142) | Can we use "if (!strcmp(dl_open_name, "__dl_dlopen"))" instead? I am slightly concerned that some applications will have an unused and broken dlopen shim what we would detect with this code. I think the risk of having a random function named __dl_dlopen is lower then that. |
source/Plugins/Platform/Android/PlatformAndroid.cpp | ||
---|---|---|
384 ↗ | (On Diff #110142) | Shouldn't this if statement be looking for "__dl_dlopen" as the name in dl_open_name? Also you can avoid the strcmp and you can just do a pointer compare: if (dl_open_name == dl_open_names[0]) |