0

How can I find the list of symbols of the running linux process? Basically what nm does, but in run time, without the need to read the binary file.

trozen
  • 1,117
  • 13
  • 13

1 Answers1

1

You can't. That information is not loaded into RAM from the executable image. In fact, it might not be present at all, if the binary has been "stripped". Debuggers do exactly what nm does: they open and read the binary file.

(Footnote: a subset of the running process's symbols may be loaded into memory for use by the dynamic loader. But there's no supported way to get a list of them.)

zwol
  • 135,547
  • 38
  • 252
  • 361