Questions tagged [objdump]

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.

477 questions
0
votes
2 answers

__do_global_ctors_aux not shown in objdump

Consider the following code: #include void __attribute__ ((constructor)) a_constructor() { printf("%s\n", __func__); } void __attribute__ ((constructor)) b_constructor() { printf("%s\n", __func__); } int main() { …
tapananand
  • 4,392
  • 2
  • 19
  • 35
0
votes
0 answers

Assembly Language, objdump?

I'm trying to follow along in the Art of Exploitation book, yet when I got to the disassembly language portion I got a little lost, because my output after running the objdump -D a.out | grep -A20 main.: command that he wrote was different. …
WhiteMask
  • 648
  • 1
  • 5
  • 17
0
votes
2 answers

How to trace which library is dynamically loaded

Our system has an open source library. The tricky thing is we have 2 copies of the library, one is with our own modification and the other is the original. Both copies are in the source tree, but the customized one should be called at run time while…
my_question
  • 3,075
  • 2
  • 27
  • 44
0
votes
2 answers

assembly x86 machine code meaning for 00

I was wondering what the machine code 00 means? Also, I sometimes see machine code 08 appear in a procedure. What does 08 mean? 08048413
: 8048413: 55 push %ebp #save frame pointer 8048414: 89 e5 …
delgeezee
  • 103
  • 1
  • 7
0
votes
1 answer

GDB using variable name to access local variable name

gdb provides a command "print localx" which prints the value stored in the localx variable. So, it basically must be using the symbol table to find the mapping (localx -> addressx on stack). I am unable to understand how this mapping can be created.…
0
votes
1 answer

Should the HAS_DEBUG flag appear in release g++ executable?

I'm a college student make some search in tips that increase the C++ performance. And I was inspecting my "release" (compiler optimized) executable with the GCC tools. When I use the objdump, it displayed the file…
Nico Engels
  • 407
  • 2
  • 12
0
votes
2 answers

ARM Processor : Content of stack

I am trying to analyse the objdump of an ARM Binary. I see that the number of local variables in my case is 2 integers, each of size 4 Bytes. The function does not have parameters. I expect the function to decrement the stack pointer by 8, however…
gkernel
  • 147
  • 2
  • 10
0
votes
1 answer

objdump and gdb spits different assembly results

you'll need to save the image to read the instructions in the image well, here's the problem. I'm working on a bomblab just for killtime and I'm stuck with the issue of different assembly code generation of objdump and gdb. my laptop is running…
ksp0422
  • 349
  • 1
  • 4
  • 14
0
votes
1 answer

How to eliminate the middle column generated by objdump?

Platform is on 32 bit Linux, I use objdump to disassemble a binary, and trying to re-use the address column and assemble code columns , but after searching in the objdump's manual, I can not find how to force objdump to not output the hex code…
lllllllllllll
  • 8,519
  • 9
  • 45
  • 80
0
votes
1 answer

Symfony - Dump colors into template

I've seen that we can syntax highlight dump()ed variables into templates by installing xdebug. I installed it on Ubuntu with $ sudo apt-get install php5-xdebug Trying to dump an array {{ dump(my_array) }} I'm now getting the html markup for the…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
0
votes
1 answer

Why objdump can figure out certain entry of PLT is used for “printf”, “puts”, and others?

Test platform is on 32-bit Linux. I use objdump to disassemble a stripped binary. So in the disassemble asm code, I can see instructions like this: 80483e4: e8 07 ff ff ff call 80482f0 So basically e8 07 ff ff ff is just a relative address of one…
lllllllllllll
  • 8,519
  • 9
  • 45
  • 80
0
votes
0 answers

Objdump: Retrieve flags

I'm actually studying the unix objdump command. I want to retrieve the flags showed by the command "objdump -f file" Here is an example $>objdump -f /bin/ls /bin/ls: file format elf64-x86-64 architecture: i386:x86-64, flags 0x00000112: EXEC_P,…
Thomas Chafiol
  • 2,395
  • 1
  • 13
  • 16
0
votes
2 answers

Mapping of source code to object file

I wanted to how this mapping done between source file and the object file void main() { printf("Hello world !!\n"); } With the object file: Disassembly of section .text: 00000000
: 0: 55 push %ebp 1: …
0
votes
2 answers

Which *.o file or which library corresponds to symbols dumped by objdump?

Is there any way to know where the symbol comes from using objdump. I have few symbols when i do objdump on my elf file (as follows): 8010864 g F .text 0000007c __floatdisf 8010864 g F .text 0000007c __aeabi_l2f 8010854 g F …
patronus
  • 103
  • 1
  • 7
0
votes
2 answers

Lib created using Android ndk are compressed

I'd like to know if the lib compiled using the Android ndk are compressed or not. If yes there's a way to uncompressed it to be able to use objdump command? I'm doing this question because I should check if a function is present or not into my…