objdump is a program for displaying various information about object files. For instance, it can be used as a disassembler to view executable in assembly form. It is part of the GNU Binutils for fine-grained control over executable and other binary data.
Questions tagged [objdump]
477 questions
3
votes
3 answers
DWARF - How to find the prologue end/epilogue start addresses of functions in a given binary?
I have an ARM binary of which I need to find exactly at which addresses its function's prologues end and the epilogues begin. In other words, I need the boundaries of the function bodies. For instance, if I have a function whose assembly is…

Martin
- 940
- 6
- 26
3
votes
2 answers
How to get struct member offset from dwarf info?
I am trying to print the DW_AT_data_member_location attribute value from the dwarf info to get the member variables offset from a struct name but no helper function seems to work out.
Here is the dwarf_info from objdump:
<1><1bf>: Abbrev Number: 5…

Udit Gupta
- 3,162
- 11
- 43
- 71
3
votes
2 answers
objdump -t /usr/bin/sort command shows no symbols
If I try objdump -t /usr/bin/sort command it says no symbols. But it seems to work on my programs. What is the reason for this?

Aman
- 773
- 2
- 10
- 22
3
votes
1 answer
Python crashed; how to decode segfault in dmesg log?
I have a Python daemon running on a 64-bit Linux box. It is crashing. Not a friendly, straightforward to debug, Python exception stack trace sort of crash, either-- this is a segmentation fault. Linux's dmesg log has a succinct…

Multimedia Mike
- 12,660
- 5
- 46
- 62
3
votes
1 answer
comparing object files to find the variable change
So in a 32bit environment i compile a ".c" file.
A.c and get A.o
I save A.o .
Suppose A.c has a variable like
int a // i change this to long a;
After the change i compile and get another A.o.
Now when i do " cmp A.o A.o " , i can…

Rags
- 434
- 2
- 6
- 20
3
votes
2 answers
arm-linux-gnueabi compiler options
I am using, arm-linux-gnueabi-gcc to compile C programs for ARM processor in Linux. However, I am not sure what is the default ARM mode for which it compiles.
For example, for the C code:
test.c
unsigned int main()
{
return…

Neon Flash
- 3,113
- 12
- 58
- 96
3
votes
0 answers
Creating List-file with CMake and Objdump
is there anyway to say cmake to genrate .lst files with objdump in the same dir as the other compiled object-files? i want to have a list-file of each src-file.
Thanks

arash javanmard
- 1,362
- 2
- 17
- 37
3
votes
2 answers
Post process `objdump --disassemble` with ARM cycle counts
Is there a script available for post processing some objdump --disassemble output to annotate with cycle counts? Especially for the ARM family. Most of the time this would only be a pattern match with a table lookup for the count. I guess…

artless noise
- 21,212
- 6
- 68
- 105
3
votes
1 answer
readelf utility for Visual Studio C++ ABI and VS compiled objects?
I'm looking for alternatives to the readelf and objdump duo when using Visual Studio for compiling C++ source code and investigating lib, obj and dll.
I'm aware that MinGW offers a porting of this tools but I'm looking for something with an official…

user1824407
- 4,401
- 4
- 15
- 20
3
votes
1 answer
objdump not found on cygwin
I will like to use the objdump command on cygwin. I get the exception:
-bash: objdump: command not found
why cygwin is not able to find objdump?
EDIT
---- I am able to see binutils at http://cygwin.com/packages/ . once I find the binutils…

Tono Nam
- 34,064
- 78
- 298
- 470
2
votes
2 answers
objdump on android kernel
I have taken android linux kernel split it from the gzip header and decompressed it. However when I try to do an objdump from the android ndk to dump the file I am getting a File format not recognized error.
Anyone know how get a symbol table from…

SamFisher83
- 3,937
- 9
- 39
- 52
2
votes
1 answer
Linking against so library without header files via objdump
So I have an .so file with no header files that I want to compile code and link against(long story)
Anyway, I got objdump to output demangled headers
objdump -g -x -C libglo_crc.so
And I get results like this:
long int Calculate_Message_CRC__FUcPUc…

user439407
- 1,666
- 2
- 19
- 40
2
votes
1 answer
What are some good resources for understanding disassembly dumps from `objdump`?
I would like to know where I can get started understanding disassembly in this format. I am familiar with OllyDbg from back in my windows days but this is a bit different, and would like to get the semantics down.
Example of part of what I'm talking…

nak
- 3,077
- 3
- 27
- 35
2
votes
1 answer
GCC proper visibility for shared object written in C++
I have a huge project written in C++. It's all split into multiple static libraries that are eventually linked into one final shared library which has to export only a few simple functions.
If I do objdump of that final .so I see all my internal…

Pavel P
- 15,789
- 11
- 79
- 128
2
votes
1 answer
`nm` and `objdump` unknown dollar signed symbol
Th nm source.o gives unknown symbols:
F:\STM32CubeIDE\LMS\ANC_fxlms_v1\Debug\Core\Src>nm FX_LMS.o
00000000 b $d
00000298 t $d
00000000 b $d
000000b4 t $d
00000000 b $d
00000544 t $d
00000024 t $d
00000000 b $d
000002b0 t $d
00000000 d $d
000001f8 t…

mohammadsdtmnd
- 330
- 1
- 11