/* * Copyright (C) 2023 Volodymyr Atamanenko * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ /** * @file patch.c * @brief Patching some of the .so internal functions or bridging them to native * for better compatibility. */ #include #include extern so_module so_mod; void so_patch(void) { // Sample hook //hook_addr((uintptr_t)so_symbol(&so_mod, "_ZN6glitch2os7Printer5printEPKcz"), (uintptr_t)&hookedFunction); }