Couldn't find .dynsym while use ltrace

142 views Asked by At

I have tried to attach to process(pid=1234) to watch all libraries call.

./ltrace-arm-static-0.7.91 -fp  1234

I got error:

 Couldn't find .dynsym or .dynstr in "/proc/1234/exe"

What can I do?

1

There are 1 answers

3
Employed Russian On

ltrace works by intercepting the calls to shared libraries. You have a fully-static binary which doesn't use any shared libraries, and that's what the error tells you.

ltrace is the wrong tool for whatever problem you are trying to solve.

What can I do?

Start by reading http://xyproblem.info.

Then ask a new question about the actual problem you are trying to solve.