nm is GNU tool that list symbols from object files

learn more…| top users | synonyms

0
votes
1answer
104 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
0answers
23 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
32 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
10 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
23 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
32 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
16 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 ...
1
vote
1answer
32 views

nm uknown command line argument '-C'?

I want to get a list of demangled symbols of my object file likenm -C file.obut my nm command has no -C argument? I am using a Mac and I guess the issue is a different, preinstalled version of nm ...
2
votes
1answer
71 views

Static variables in global and local scope in C

I have the following C program#include <stdio.h> static int aa=10; void func(){static int aa=9;printf("%d\n",aa);}int main(){ func();return 0;}...
1
vote
1answer
54 views

I don't understand meaning of this: +“a function to be evaluated during reloc processing”

I don't understand meaning of this: +"a function to be evaluated during reloc processing" - it is from flags of objdump.How function can be evaluated during reloc processing?Is it sequence of cpu ...
0
votes
1answer
17 views

How can I get the actual size impact of each symbol in my binary?

I want to understand how much each symbol, e.g. functions, affect the size of my binary. I've tried using nm my_binary, sorted by address, and taken the offset between each address and the one after ...
2
votes
2answers
145 views

What is nm telling me regarding the vtable in this program compiled with gcc on Linux?

I changed a Base class to be abstract (i.e. I made one of its methods pure virtual) and recompiled it. When I went to link it with the derived class, the linker complained about the vtable. I ...
1
vote
1answer
54 views

How can I get the symbol name in struct “Elf64_Rela”

#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <sys/stat.h>#include <sys/types.h>#include <sys/mman.h>#include <...
1
vote
1answer
33 views

How to get the symbols of class members in object file?

Is there a way to get the symbols of class members using GNU nm?

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