reverie-rs / reverie

trace and intercept linux syscalls.
Other
14 stars 5 forks source link

reduce number of LD_PRELOAD libraries #25

Closed wangbj closed 5 years ago

wangbj commented 5 years ago

both libsystrace.so and libTOOL.so must be LD_PRELOADed right now; but it would be less confusing if only libTOOL.so has to be loaded. The simplest approach is just search libsystrace.so from the same path of libTOOL.so, and still use the same logic to LD_PRELOAD them both.

wangbj commented 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.