Closed jacobvhall closed 5 years ago
No. xHook (or any other PLT hook tools) does not apply to linker.
Linker does not dependent on any dynamic libraries in runtime ...
arm-linux-androideabi-readelf -d ./linker | grep NEEDED
... even libc.so. http://androidxref.com/5.0.0_r2/xref/bionic/linker/Android.mk#49
LOCAL_STATIC_LIBRARIES := libc_nomalloc
Because there is no other dynamic linker that can help the /system/bin/linker load these libraries.
There is almost no relocation info in linker ...
arm-linux-androideabi-readelf -r ./linker
... and this knocked down PLT hook approach.
Hello, I want to hook usages of open in linker, but it is not working. I can hook open in other libs, like libart but not in the linker. Is this not possible with xHook?
I want to hook this open specifically http://androidxref.com/5.0.0_r2/xref/bionic/linker/linker.cpp#723
Thank you for your wonderful tool.