If you can link the executable, the easiest way to find out where links and definitions come from is to use the ld -y flag. For instance:
$ cat tc int main() { printf("Hello\n"); return 0; } $ gcc tc -Wl,-yprintf /lib/libc.so.6: definition of printf
If you cannot reload the executable, run ldd on it, and then run 'nm -D' in all the libraries listed in order, and grep for the character you are interested in.
Employed Russian
source share