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
0
votes
0 answers
Locate jump tables in x86 assembly
Where are jump tables located in x86 elf code?
progname: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 :
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: 48 83…

qwerty
- 85
- 2
- 6
0
votes
1 answer
Is there any way to use pwn tools to find the address of a function in an executable?
Let's say that I have a simple executable and I want to find the address of the main. Usually, I take the address from the objdump output, and then I use it in my pwn script. I want to make my script more generic without using any of the hardcoded…

Mocanu Gabriel
- 490
- 5
- 19
0
votes
0 answers
RISCV toolchain disassembly omitting addresses
I am using the RISCV toolchain to generate assembly code from .c files.
During the disassembly process:
riscv32-unknown-elf-objdump -D -S -l -F -Mnumeric,no-aliases
noticed that some addresses are omitted, as shown below in the picture with " ...…

Dia
- 47
- 5
0
votes
2 answers
extract source code from ELF with debug symbols
I'm trying to extract the original source code from an ELF with debug symbols.
$ sed -n "14,16p" main.c
for (int p=start;p

OrenIshShalom
- 5,974
- 9
- 37
- 87
0
votes
0 answers
Can't disassemble for architecture UNKNOWN' for .elf file
I got an executable files that are send to a microcontroller. I have .bin .elf .hex, .ihex and .map I am trying to put out from them all the information about objects, their addresses, type etc. For what I know .elf file contains all this…

Amanda Stein
- 23
- 5
0
votes
0 answers
What other 'behind the scene' work is done by gcc for every C program?
I compiled this simple C program int main() {} in gcc in windows 10 with -O3 and -Os options. Then I objdumped the text section of generated exe file. It generated whopping 2000 lines of assembly code.
I know, compiler has to do some hidden things…

Sourav Kannantha B
- 2,860
- 1
- 11
- 35
0
votes
1 answer
Is it possible to dissembler running process in Linux?
To disassemble the program I am using objdump -d tool. Is it possible to get the same output as with objdump for running process without condition to have exe file? How can i do it in C language from other program? I know that exists debuggers like…

ipolit__
- 23
- 4
0
votes
0 answers
How could someone compile a static C program with only the needed functions/variables etc.?
I have two very simple C example files written which are called main.c and simple_library.c with simple_library.h.
File main.c:
#include "simple_library.h"
int main(int argc, char* argv[]) {
func_b(1, 2);
return 0;
}
File…

PiMathCLanguage
- 363
- 4
- 15
0
votes
1 answer
Trying to compile and dump asm using GCC and Objdump in a .bat
I want to be able to compile and dump basic asm into hex using Intel syntax. I saw an answer to another question and want to play around with it. It used GCC and objdump. But I'm getting an error I don't understand.
test.c:1:1: error: expected…

user4096
- 1
0
votes
2 answers
equivalent of objdump for dex files
Is there any equivalent to objdump for dex files?
I don't want to decompile them, just be able to watch their content

OrenIshShalom
- 5,974
- 9
- 37
- 87
0
votes
1 answer
Getting no symbol table for binaries built with bitbake
I'm using bitbake to build an application and I'd like to troubleshoot some segfaults that are taking place.
I've set up gdbserver on a virtual machine running the application and can connect.
My problem is that I cannot seem to get the image to…

Fraser11
- 1
- 1
0
votes
2 answers
How To Disassemble A atmega328p Elf File
I tried to disas atmega328p elf files like this.
avr-objdump -d -Maddr16,data16 target/avr-atmega328p/release/sample.elf …

Kyuvie
- 23
- 5
0
votes
0 answers
Parse `objdump -dj .text ` result
I have a collection of binaries in the format of ELF. I am trying to retrieve the source code and compare it with the assembly so that I could have better understanding about the compiling process.
Now I could de-assemble the ELF based on the great…

Mr.Robot
- 349
- 1
- 16
0
votes
1 answer
Why does `add cx, 1234` in NASM 16 bit mode produce with objdump?
I have this:
bits 16
global start
section .text
start:
add cx, 1234
With this Makefile:
test:
@nasm -f macho64 test.asm
@objdump -x86-asm-syntax=intel --full-leading-addr -d test.o
.PHONY: test
It prints:
% make
test.o: file format…

Lance
- 75,200
- 93
- 289
- 503
0
votes
0 answers
Assembly code to shell code: section .data and section .text in which order?
For an assignment, I wrote the following assembly code shell_exec.asm that should execute a shell in Linux:
section .data ; declare stuff
arg0 db "/bin/sh",0 ; 1st arg
align 4
argv dd arg0, 0 ; 2nd arg
envp dd 0 ; 3rd arg
section…

TiMauzi
- 190
- 1
- 3
- 16