nm is a POSIX tool that displays symbol names and other such information of an object file to stdout
Questions tagged [nm]
230 questions
0
votes
1 answer
nm: shared library symbol appearing twice or once
I have a shared library (libARWrapper.so) which includes the following two entries, shown using nm (nm -D --defined-only libARWrapper.so)
00075854 T Java_org_artoolkit_ar_base_NativeInterface_arwAcceptVideoImage
00074d54 T…

Jethro
- 3,029
- 3
- 27
- 56
0
votes
2 answers
Using awk to iterate unix command nm and sum output through multiple files
I am currently working on a script that will look through the output of nm and sum the values of column $1 using the following
read $filename
nm --demangle --size-sort --radix=d ~/object/$filename | {
awk '{ sum+= $1 } END { print "Total =" sum…

Euler1707
- 3
- 2
0
votes
1 answer
Interpreting nm output after rejected app
my app was rejected by Apple, because somehow my app uses private API's.
Apple said that my app uses
framework: '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation': CFHashBytes
I couldn't find anything in the code, so I…

inexcitus
- 2,471
- 2
- 26
- 41
0
votes
1 answer
Apple app store rejection; How to find which lib has string referencing "transition:didComplete:"
We got rejected by Apple. Happens all the time right? But this time we are a bit stumped. The old ways of sussing this out aren't producing a clue to the solution.
From Apple:
5 PERFORMANCE: SOFTWARE REQUIREMENTS
Performance - 2.5.1
Your app…

Hunter-Orionnoir
- 2,015
- 1
- 18
- 23
0
votes
1 answer
Given two Linux static libraries, how to tell if one depends on the other?
I have a bunch of .a files whose generation process is not controlled by me, nor are their sources. When I use them for linking, I want to know their dependencies (libA.a depends on libB.a if there is some symbol undefined in libA.a but defined in…

Kan Li
- 8,557
- 8
- 53
- 93
0
votes
1 answer
nm output of show the shared library's version is incorrect
I just have built a shared library, but when I use nm command to look the dependency the output is as below
$ nm -a libgio-2.0.so.0.2701.0 | grep ZLIB
U deflateSetHeader@@ZLIB_1.2.2
U inflateGetHeader@@ZLIB_1.2.2
I don't know the mean…

Peng Li
- 3
- 2
0
votes
2 answers
Skip address output when using GNU nm utility
Is there any ideas how to skip address output while outputting via nm?
Here is an excerpt from nm output:
0040cb94 T _fwrite
0040c8e0 t _get_ptr_from_atom
00410948 t _get_ptr_from_atom
00412fac T _GetAtomNameA@12
00412ffc T…

Nusrat Nuriyev
- 1,134
- 2
- 13
- 29
0
votes
1 answer
Find member by offset
I have a (big) class and an offset into that class.
How can I efficiently find the member defined at that offset?
Example:
struct Dummy {
int a, b, c;
}
Given an offset of 4 and assuming sizeof(int) == 4, I would like to get 'b'.
Obviously I…

mbschenkel
- 1,865
- 1
- 18
- 40
0
votes
3 answers
How to see executable content under AIX
I have a question about executables and C.
If you had to know the content (the version of each .c file written in a commentary) of an executable BUT you just have the executable, you don't have the sources. How do you proceed ?
I've seen the "nm"…

Ežekiel
- 15
- 6
0
votes
1 answer
GCC's nm lists multiple entries for method
Is it normal to have multiple entries for a single method listed out by nm? I ran the following:
nm -C myObjectFile.o | grep MyObject::
and received the following:
... stuff...
... stuff...
0000027e0 T MyObject::MyObject(MyDepend*)
0000027e0 T…

DavidZemon
- 501
- 5
- 21
0
votes
1 answer
nm versus gdb break
I am working on Ubuntu 14.04 LTS.
I have an executable file exec compiled from file.c. The file.c makes use of functions from a static library. For example, let's says that fubar() is a function of the static library that is used in file.c.
This is…

progammer
- 1,951
- 11
- 28
- 50
0
votes
0 answers
How to use nm or objdump and/or any other available tool to pinpoint an offending function/method in a .so file?
The issue:
migration issues from RH5 (gcc 4.1.2 and GLIBC 2.5) to RH6 (gcc 4.4.7 and GLIBC 2.12)
Details:
I am migrating a big project from RH5 (gcc 4.1.2) to RH6 (gcc 4.4.7) and everything compiles and links without any hiccups.
The code compiled…

Wlamir Mello
- 1
- 1
0
votes
0 answers
How to access library’s symbol table, to find the routine symbol names
I need to identify the addresses of the crypto routines used in a linux executable that links to the OpenSSL library. How can I access the openssl symbol table?
address routine name
4099bc0 BF_cbc_encrypt()
40e4463 bf_cbc_cipher()
How to…

heaven
- 11
- 2
0
votes
1 answer
Static member of template base class doesn't get exported to shared library
I have a class 'ModelManager' which is derived from a template class 'TModelManager'. Their declaration is as follows:
template
class TModelManager
{
protected:
static…

Silverlan
- 2,783
- 3
- 31
- 66
0
votes
1 answer
What does it mean when Boost.Exception symbols show up in 'nm' output? Will they cause ODR violations?
I'm running this on a 3rd party statically linked library. I thought that since it's a header only library (except on some MSVC versions), it wouldn't show up. Maybe I'm misunderstanding what nm is supposed to show. What I really want to know is if…

Matt Chambers
- 2,229
- 1
- 25
- 43