Skip to main content
Tweeted twitter.com/#!/StackReverseEng/status/459899074406543361
deleted 24 characters in body
Source Link

I have a number of shared libraries calling each other (.so, ARM, Android), binary-only.

I want to add logging to some functions, _funcAfuncA(), ..., funcZ()_ defined in _libsomethinglibsomething.so_so. The functions are called from _libstuff1libstuff1.so, ..., libstuffN.so_so. 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:

  1. Add an extra library to the dependency list of the calling library, that is, _libstuff1libstuff1.so_so originally referenced only _libsomethinglibsomething.so_so, and I want it to reference both _libsomethinglibsomething.so_so and _libOneMoreLiblibOneMoreLib.so_so.
  2. Or, add an extra function to existing library, e.g. in _libsomethinglibsomething.so_so, I rename _funcAfuncA()_ to _funbQfunbQ()_ and define (that is, add) _funcAfuncA()_ to print logs and call _funbQfunbQ()_.

How can I do any of these?

I have a number of shared libraries calling each other (.so, ARM, Android), binary-only.

I want to add logging to some functions, _funcA(), ..., funcZ()_ defined in _libsomething.so_. The functions are called from _libstuff1.so, ..., libstuffN.so_. 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:

  1. Add an extra library to the dependency list of the calling library, that is, _libstuff1.so_ originally referenced only _libsomething.so_, and I want it to reference both _libsomething.so_ and _libOneMoreLib.so_.
  2. Or, add an extra function to existing library, e.g. in _libsomething.so_, I rename _funcA()_ to _funbQ()_ and define (that is, add) _funcA()_ to print logs and call _funbQ()_.

How can I do any of these?

I have a number of shared libraries calling each other (.so, ARM, Android), binary-only.

I want to add logging to some functions, funcA(), ..., funcZ() defined in libsomething.so. The functions are called from libstuff1.so, ..., libstuffN.so. 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:

  1. Add an extra library to the dependency list of the calling library, that is, libstuff1.so originally referenced only libsomething.so, and I want it to reference both libsomething.so and libOneMoreLib.so.
  2. Or, add an extra function to existing library, e.g. in libsomething.so, I rename funcA() to funbQ() and define (that is, add) funcA() to print logs and call funbQ().

How can I do any of these?

Better usage of the wiki syntax
Source Link
perror
  • 19.2k
  • 29
  • 87
  • 150

I have a number of shared libraries calling each other (.so.so, ARM, Android), binary-only.

I want to add logging to some functions, funcA() ... funcZ()_funcA(), ..., funcZ()_ defined in libsomething.so_libsomething.so_. The functions are called from libstuff1.so ... libstuffN.so_libstuff1.so, ..., libstuffN.so_. 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.so originally referenced only libsomething.so, and I want it to reference both libsomething.so and libOneMoreLib.so

or

add an extra function to existing library, e.g. in libsomething.so I rename funcA() to funbQ() and define (that is, add) funcA() to print logs and call funbQ().

  1. Add an extra library to the dependency list of the calling library, that is, _libstuff1.so_ originally referenced only _libsomething.so_, and I want it to reference both _libsomething.so_ and _libOneMoreLib.so_.
  2. Or, add an extra function to existing library, e.g. in _libsomething.so_, I rename _funcA()_ to _funbQ()_ and define (that is, add) _funcA()_ to print logs and call _funbQ()_.

How can I do any of these?

I have a number of shared libraries calling each other (.so, ARM, Android), binary-only.

I want to add logging to some functions, funcA() ... funcZ() defined in libsomething.so. The functions are called from libstuff1.so ... libstuffN.so. 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.so originally referenced only libsomething.so, and I want it to reference both libsomething.so and libOneMoreLib.so

or

add an extra function to existing library, e.g. in libsomething.so I rename funcA() to funbQ() and define (that is, add) funcA() to print logs and call funbQ().

How can I do any of these?

I have a number of shared libraries calling each other (.so, ARM, Android), binary-only.

I want to add logging to some functions, _funcA(), ..., funcZ()_ defined in _libsomething.so_. The functions are called from _libstuff1.so, ..., libstuffN.so_. 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:

  1. Add an extra library to the dependency list of the calling library, that is, _libstuff1.so_ originally referenced only _libsomething.so_, and I want it to reference both _libsomething.so_ and _libOneMoreLib.so_.
  2. Or, add an extra function to existing library, e.g. in _libsomething.so_, I rename _funcA()_ to _funbQ()_ and define (that is, add) _funcA()_ to print logs and call _funbQ()_.

How can I do any of these?

Source Link

Need to extend the list of libraries that a shared (.so) library uses

I have a number of shared libraries calling each other (.so, ARM, Android), binary-only.

I want to add logging to some functions, funcA() ... funcZ() defined in libsomething.so. The functions are called from libstuff1.so ... libstuffN.so. 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.so originally referenced only libsomething.so, and I want it to reference both libsomething.so and libOneMoreLib.so

or

add an extra function to existing library, e.g. in libsomething.so I rename funcA() to funbQ() and define (that is, add) funcA() to print logs and call funbQ().

How can I do any of these?