Closed wangbj closed 5 years ago
We can also embed libsystrace.so
as part of systrace
, or simply add a fake -Lsystrace
for systrace
it self, but we'll still need to do relocations for each tracee
, hence not fully convinced this would be better and worth the effort.
both libsystrace.so and libTOOL.so must be
LD_PRELOAD
ed right now; but it would be less confusing if only libTOOL.so has to be loaded. The simplest approach is just searchlibsystrace.so
from the same path of libTOOL.so, and still use the same logic toLD_PRELOAD
them both.