diff --git a/linker/linker_soinfo.cpp b/linker/linker_soinfo.cpp index 60b2ac635..4fd31fa11 100644 --- a/linker/linker_soinfo.cpp +++ b/linker/linker_soinfo.cpp @@ -543,6 +543,10 @@ void soinfo::call_pre_init_constructors() { call_array("DT_PREINIT_ARRAY", preinit_array_, preinit_array_count_, false, get_realpath()); } +extern "C" void mcpelauncher_linker_notifylldb(const char* filename, size_t offset) { + _PRINTVF(-2, "mcpelauncher_linker_notifylldb %s 0x%llx", filename, (long long)offset); +} + void soinfo::call_constructors() { if (constructors_called || g_is_ldd) { return; @@ -577,6 +581,8 @@ void soinfo::call_constructors() { } #endif + mcpelauncher_linker_notifylldb(get_realpath(), base); + // DT_INIT should be called before DT_INIT_ARRAY if both are present. call_function("DT_INIT", init_func_, get_realpath()); call_array("DT_INIT_ARRAY", init_array_, init_array_count_, false, get_realpath());