The Microsoft Detours library combined with the EasyHook C module thread barrier implementation and modified to work on Linux with support for X64, ARM (supports both ARM32 and Thumb instructions), and ARM64 architectures.
You can install it by running:
sudo apt-get install libgoogle-glog-dev
You can use Visual Studio to build the LinuxDetours application after configuring the project to connect to your Linux system.
You can use the makefile to build the shared library. The makefile outputs libdetours32 for ARM and libdetours64 for X64 and ARM64 in the LinuxDetours source directory.
git clone https://github.com/unknownv2/LinuxDetours.git
cd LinuxDetours
make -C LinuxDetours