Questions tagged [nm]

nm is an utility program that writes the name list of an object file

The nm command ships with a number of later versions of Unix and similar operating systems. nm is used to examine binary files (including libraries, compiled object modules, shared-object files, and standalone executables) and to display the contents of those files, or meta information stored in them, specifically the symbol table.

7 questions
43
votes
3 answers

Why nm shows no symbols for /lib/i386-linux-gnu/libc.so.6?

I expected to see number of symbols in the libc.so.6 file including printf. I used the nm tool to find them, however it says there is no symbol in libc.so.6.
masec
  • 615
  • 1
  • 7
  • 12
5
votes
2 answers

nm program - why such name?

Where does the name of nm come from? The IEEE standard defines nm as: nm - write the name list of an object file Is nm an abbreviated form of word name/names? Or does it have a completely different origin?
tmp
  • 195
  • 5
3
votes
1 answer

How to understand the result returned by "nm" command

I used nm command to inspect the function names in a .so library. And the result I got is like this: 00009634 T _Z24ICTCLAS_ParagraphProcessPKciPc9eCodeTypeb 00009764 T _Z25ICTCLAS_ParagraphProcessAPKciRi9eCodeTypeb 00009b24 T…
xiaohan2012
  • 1,655
  • 3
  • 14
  • 24
1
vote
1 answer

How do `nm` choose the character to print for each symbol type?

I'm currently doing a nm like program, to print the symbols of an ELF file with their addresses and their type. The typical output is something like : $ nm ./my_exec 0000000000003d28 d _DYNAMIC 0000000000003f28 d…
Hollow
  • 21
  • 2
0
votes
1 answer

No networkmanager service on RHEL 7.9

Got a RHEL 7.9 server. Seems the networkmanger package is installed but no service added. Is there a way that I can manually add the service? # yum install NetworkManager Loaded plugins: langpacks, product-id, search-disabled-repos,…
sleepy
  • 147
  • 1
  • 2
  • 9
0
votes
1 answer

How do I use nm to recursively search for specific symbol?

I would like to find the symbol "start" for example in all object files recursively down from the directory I'm in. I think I can use nm or readelf, but I'm new to shell and not understanding how to do this from the manual.
0
votes
0 answers

Use the output of find as the input for another command?

I am looking for a specific symbol in a bunch of shared libraries, I am using the following command: find . -iname "*.so" | nm -D //loop over output of find | grep -e symbol How can I tell nm -D to loop over find results ? Thanks
Bionix1441
  • 297
  • 6
  • 14