objdump Questions

12

Solved

I've got a binary installed on my system, and would like to look at the disassembly of a given function. Preferrably using objdump, but other solutions would be acceptable as well. From this quest...
Deputation asked 31/3, 2014 at 18:22

6

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-x86-64. I am trying to disassemble this into ARM, h...
Nihility asked 4/10, 2010 at 21:57

1

In order to get reproducible builds, we use the --ffile-prefix-map=/path/to/src=SRC --file-prefix-map=/path/to/lib=LIB option when compiling. And similarly, for gdb I can set substitute-path SRC=/p...
Segregation asked 12/9, 2023 at 20:5

0

My goal is to compile Rust programs to the smallest possible binary and extract the machine code. I've made a very simple program to test. .cargo/config [target.x86_64-pc-windows-gnu] rustflags = [...
Whitley asked 27/7, 2023 at 19:1

2

Solved

I have not been successful in finding an answer on this question. Using GDB, I can use the command "call" to get the prototype of a function. Example: (gdb) call fn $1 = {void (int, int)} 0x80484...
Hillell asked 19/3, 2014 at 8:39

2

Solved

In modern linux almost all objects are stripped and splitted in two parts (two files). First is executable itself and second is debug symbols, stripped out from original ELF. Such files are created...
Ebeneser asked 24/3, 2010 at 16:9

4

Solved

I need a way to analyze output file of my GCC compiler for ARM. I am compiling for bare metal and I am quite concerned with size. I can use arm-none-eabi-objdump provided by the cross-compiler but ...
Sell asked 30/7, 2012 at 11:13

7

How can I tell, with something like objdump, if an object file has been built with -fPIC?
Collin asked 27/8, 2009 at 11:15

3

Solved

What is the right architecture to get objdump to disassemble raw x64 code? You would think -m x86-64 should work from reading the help, but it doesn't. I tried with both the cygwin64 version: $ ob...
Innovation asked 28/9, 2013 at 20:42

3

I'm attempting to build a control-flow graph of the assembly results that are returned via a call to objdump -d . Currently the best method I've come up with is to put each line of the result into ...
Combustor asked 25/11, 2010 at 4:50

1

Solved

Looking for ways to see generated assembler of a specific function in my binary (an .so to be exact), just as I can see similar on Compiler Explorer, I found How to disassemble one single function ...
Highkeyed asked 9/3, 2022 at 13:47

2

Solved

I'm trying to figure out what all of the elements of this objdump -d mean. for example i have: 08048b50 <phase_1>: 8048b50: 83 ec 1c sub $0x1c,%esp 8048b53: c7 44 24 04 68 a2 04 movl $0x80...
Tris asked 13/2, 2014 at 0:19

2

Solved

I ran objdump -r on an object file and got the following output. What do each of the columns represent here? I might have missed it, but the documentation doesn't specify. simple.o: file for...
Objection asked 1/8, 2011 at 4:23

1

Solved

In my objdump -t output, I see the following two lines: 00000000000004d2 l F .text.unlikely 00000000000000ec function-signature-goes-here [clone .cold.427] and 00000000000018e0 g F .text 000000...
Chura asked 3/2, 2020 at 19:37

1

Solved

See the following objdump line of a specific object file of a specific function (func): 3c: e03a b.n 78 <func+0x78> Now, the opcode e03a in the target system (ARMv6-M) says jump to the loc...
Shiite asked 13/8, 2019 at 12:12

1

Solved

I was reading this article about Position Independent Code and I encountered this assembly listing of a function. 0000043c <ml_func>: 43c: 55 push ebp 43d: 89 e5 mov ebp,esp 43f: e8 16 00...
Anticholinergic asked 16/3, 2019 at 4:16

8

Solved

Is there anyway this can be done? I've used objdump but that doesn't produce assembly output that will be accepted by any assembler that I know of. I'd like to be able to change instructions within...
Nomanomad asked 30/11, 2010 at 1:31

5

SYMBOL TABLE: 0000000000000000 w *UND* 0000000000000000 __gmon_start__ I've man objdump but there's no such info. Anyone know what the 5 columns mean?
Systemize asked 12/7, 2011 at 15:30

3

Solved

I'm finding it really annoying to have to disassemble large swathes of library code just to get enough context to see what is causing a crash. Is there any way that I can just hand objdump an addre...
Brigidabrigit asked 22/6, 2011 at 14:37

2

Solved

When dumping an executable file, I only want the code segment to be printed on the standard output, not offsets and binary form of the code. I cannot achieve it from man objdump Is there a way?
Messere asked 17/12, 2011 at 1:21

1

Recently, I read some books about computer science. I wrote some C code, and disassembled them, using gcc and objdump. The following C code: #include <stdio.h> #include <stdbool.h...
Infusible asked 5/6, 2018 at 7:41

2

Solved

I'm trying to debug a segfault in Android's surfaceflinger daemon on a custom made ARM board. The process crashes before dumping the call stack and register content, including the program counter. ...
Imam asked 7/3, 2018 at 11:2

1

Solved

GNU assembler appears to have some means of controlling the alternative forms of the opcode being emitted for some instructions. E.g. .intel_syntax noprefix mov eax, ecx mov.s eax, ecx Processin...
Simoom asked 6/12, 2017 at 11:25

1

register_tm_clones and deregister_tm_clones are referencing memory addresses past the end of my RW sections. How is this memory tracked? Example: In the example below deregister_tm_clones referenc...
Cousins asked 22/12, 2016 at 1:25

1

Solved

My understanding is that when you compile C code using gcc -g, gcc will insert debugging information that includes references to the original source code (e.g. line numbers). Then other programs su...
Centrepiece asked 16/4, 2017 at 18:26

© 2022 - 2025 — McMap. All rights reserved.