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
1
vote
2 answers
How to separate ARM instructions and data during dis-assembly
I am writing/(using binutils) a piece code to do an manual dis-assembly of thumb2(16bit and 32 bit) instructions.
I am facing a problem to differentiate between genuine ARM instructions and DATA portions.
The biggest problem is instructions are not…

user1468106
- 33
- 1
- 3
1
vote
1 answer
how to extract the data type of global variables in objdump output file?
I have a binary file that I disassemble using objdump disassembler tool. I want to know how can I can extract the data type of the global variables that are exist in the objdump output file?

hamb
- 159
- 1
- 2
- 11
1
vote
1 answer
retrieving variable type from debug info
Consider :
int x[] = {1, 2, 3};
int main(){
return 0;
}
If we do an objdump of the data section, we will get the variable x with the starting address and the size as (4*3) bytes. Is there any easy way to retrieve the information that x was an…

pankaj
- 335
- 4
- 15
0
votes
2 answers
objdump for old ARM7TDMI (ARMv4T) showing instructions for newer architectures?
I care about the success of GNU very much and wanted some feedback on
what to do about a potential bug in objdump for ARM....
I'm examining the output of "objdump -D --target=binary -m arm7tdmi" and seeing
instructions that do not exist on the…
None
0
votes
1 answer
Extracting _fini in C binary
I am basically looking for a way to extract _fini address within a binary. Naive way I can think of is to use objdump and parse for _fini. Is there a better way to do this (e.g. not using objdump).
Thank you!

Student01
- 109
- 3
- 11
0
votes
1 answer
File format not recognized when run objdump in binutils
There is a .a lib in iOS project. I want to see the methods name in it, so I installed binutils on Mac. But when I run objdump [-h] xxx.a. It says:
"File format not recognized".
So, what format does objdump supports? And how can I see the methods in…

EVA
- 375
- 1
- 6
- 18
0
votes
0 answers
If objdump doesn't show the definitive virtual addresses then how can I get the real definitive virtual addresses in a program?
I'm on an Ubuntu ( 22.04.3 ) x86_64 system.
I have this little C program in a file named test.c :
void fx1(){
int b = 20;
b++;
}
int main(){
int a = 10;
a++;
fx1();
}
I've compiled this program with "gcc test.c -o test" and…

alessio solari
- 313
- 1
- 6
0
votes
0 answers
Understanding objdump DWARF information regarding struct and its member variables
I think I have the correct understanding of my question, but as I'm going purely with documentation and intuition, I was hoping someone with more expertise than me could verify or correct my understanding.
The closest question I was able to find in…

Jay
- 373
- 1
- 10
0
votes
1 answer
Why does GCC not putting functions at the begining of the text section in a shared library?
I have a C source file temp1.c
void foo(void){}
On my AMD64 Archlinux environment I compile this with command gcc -o test1.so -shared test1.c, and generates a shared library test1.so. I then dump the text section of test1.so using command objdump…

gnaggnoyil
- 764
- 5
- 14
0
votes
0 answers
How to make riscv-objdump use pc-relative address rather than absolute address? And what are alias-instructions? Has a standard manual?
I'm learning RISCV(64) and implementing a simulator. I compile the following simple code and disassemble the generated elf with riscv64-unknown-linux-gnu-objdump. I have two problems totally.
int main() {
return 0;
}
If I use…

beyond
- 11
- 2
0
votes
0 answers
objdump -C interfering with --disassemble=
Here is a simple cpp file:
#include
void test(int x)
{
std::cout << "x is " << x << std::endl;
}
int main()
{
test(5);
return 0;
}
After compiling with g++, suppose I want to use objdump to show the disassembly only of the test…

charlescochran
- 107
- 7
0
votes
0 answers
How to use objdump with --disassemble=
Here is a simple cpp file:
#include
void test(int x)
{
std::cout << "x is " << x << std::endl;
}
int main()
{
test(5);
return 0;
}
After compiling with g++, suppose I want to use objdump to show the disassembly only of the test…

charlescochran
- 107
- 7
0
votes
0 answers
How to make objdump show jumps in diff-friendly way
I'm struggling with understanding the jumps shown by objdump, taking into consideration that it should be diff-friendly.
Use --visualize-jumps
This is pretty nice and clear for the jumps. However, it works well only when looking at a single listing.…

Adam Badura
- 5,069
- 1
- 35
- 70
0
votes
0 answers
Callgrind and objdump don't point to the same address on ARMv7
When I run Callgrind on a simple program on an ARMv7 system, I get the following dump (extract):
ob=(6) /lib/arm-linux-gnueabihf/libm-2.31.so
fl=(68) ./csu/../sysdeps/arm/crti.S
fn=(280) 0x00007570
0x7570 64 1
0x7574 65 1
0x7578 67 1
0x757c 68…

Benjamin Barrois
- 2,566
- 13
- 30
0
votes
1 answer
Using objdump on ARM architecture: Disassembling to INTEL arch
I have an object file and am trying to disassemble it. When I use:
objdump -d example.o
I get an assembly in code in the file format of elf64-littleaarch64.
I am trying to disassemble this into INTEL elf64-x86-64, how do I go about doing this?

Helix
- 9
- 1