I have a number of shared libraries calling each other (
.so, ARM, Android), binary-only.
I want to add logging to some functions,
funcZ() defined in
The functions are called from
I can rename a function in the original library (keeping the name in the same bucket is a bit tricky, but possible).
I want to either:
- Add an extra library to the dependency list of the calling library, that is,
libstuff1.sooriginally referenced only
libsomething.so, and I want it to reference both
- Or, add an extra function to existing library, e.g. in
libsomething.so, I rename
funbQ()and define (that is, add)
funcA()to print logs and call
How can I do any of these?