Questions tagged [nm]

nm is GNU tool that list symbols from object files

0
votes
0answers
12 views

Accessing functions in static library without header file

I have a static library (libexam3.a) but without its corresponding header file. I was able to extract the name of the function inside it by usingnm libexam3.aAnd it contains lz4.o...
1
vote
1answer
41 views

'libdenpli.so : undefined reference to symbol 'Tcl_InitStubs'

I am getting 'libdenpli.so : undefined reference to symbol 'Tcl_InitStubs' while creating executable.When I check with nm, I am getting this output:nm libdenpli.so | grep Tcl_InitStubsU ...
2
votes
1answer
78 views

Why different type of symbol occupies the same length?

I compiled below code with cygwin GCC on a x64 machine:gcc main.c -o main(main.c)long long mango=13; // I also tried `char`, `short`, `int`long melon=2001;void main(){}Then I dump ...
0
votes
1answer
31 views

nm symbol names slightly different

I have an undefined symbol name in one shared lib:U _ZN5Daetk5Petsc3Sys10catchErrorEjIn the shared lib that should resolve this, the symbol name is different in its last character:...
0
votes
1answer
15 views

nm - show file that declares a symbol in a .so file

Is it possible for nm to show the file that declares a symbol in a .so file? Let's say I have some file://file.cppint get_data();int main(){return 0;}If I compile this file into a shared ...
0
votes
0answers
24 views

Removing symbols from `.a`s

I'm compiling a C++ static library using g++ via Cmake. I want to remove symbols relating to the internal implementation so they don't show up in nm. (See here and here for the same with shared ...
0
votes
0answers
39 views

nm - how to list all functions and their address

I was trying to create a list of functions names with its address in an executablenm a.out | grep methodnameBut it dumped a lot of data like below (sample data) -0000000002996590 r .xdata$...
0
votes
1answer
534 views

How to print the name of the symbols of ELF files like the nm?

I know the name of the symbols are in the shstrtab. But I don't get how to catch them. Should I cast my shstrab into a Elf64_Sym so that I can use the st_name? Elf64_Shdr *shdr=(Elf64_Shdr *...
0
votes
1answer
51 views

Print symbol of file .o

I want to print symbol of .o file (same of nm command).I iterate on each section. And use this condition:if (section[i].sh_type==SHT_SYMTAB){sym=(Elf64_Sym *)((...
0
votes
0answers
51 views

How to use functions of .so (shared object) file if the related headers are missing

Now I have a .so file but no related headers attached.Are there recommended methods to analysis and use the functions inside the library? Ok, I think it can be two parts:"how to load the library" ...
0
votes
0answers
16 views

Is there a script/tool to build the dependencies graph of a library in UNIX like OSes?

I want to build a dependency graph of the libraries that a binary uses.Is there an automated too, script, methods that can help me do that?At the movement I'm going to try to build a wrapper that ...
0
votes
0answers
32 views

Symbols “T _Z20” before exported function

Trying to find why client application can't find exported function in .so library I have done. I did nm -D libmylib.so |grep " T " |grep aaaand got answer:T _Z20aaasPP8CashInfoPiS1_S2_S2_PcS3_...
1
vote
0answers
17 views

Make symbols global in already compiled object file

Suppose I have an object file with no available source code that contains some non-exported symbols (marked by lowercase t's in the output of nm) that I would like to make visible. How can I do that? (...
0
votes
1answer
36 views

Search mangle into libraries

I want to find some functions or structures into library files. For this purpose I'm using "nm" command using "find" command output as parameter files. (I want search in /usr/lib directory recursively)...
0
votes
1answer
66 views

Why does the nm tool output for the extern-only and defined-only options overlap?

I'll start by giving my understanding of the options:extern-only: Show me only those symbols which are referenced by the binary but whose definitions (the code or variable) will be provided by ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,