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
1 answer

windows how to show memory segment of a process?

We have tools like objdump, readelf, and dumbin to show executable file contents. But when an executable file is loaded into memory (a process is created), the segments in memory is usually different from the segments in the executable file. For…
Zachary
  • 1,633
  • 2
  • 22
  • 34
0
votes
0 answers

objdump disassemble executable compiled with -marm as thumb instructions

I have compiled some code with gcc -marm, and then when I try to disassemble it with objdump, half of the instructions are 16 bits, so I guess it is thumb instructions. Why ? I have seen this question : objdump and ARM vs Thumb So I tried to…
0
votes
1 answer

objdump won't show my ELF sections

I have a tool emitting an ELF, which as far as I can tell is compliant to the spec. Readelf output looks fine, but objdump refuses to disassemble anything. I have simplified the input to a single global var, and "int main(void) { return 0;}" to aid…
David Mirabito
  • 455
  • 5
  • 13
0
votes
1 answer

Register value debugging

I have an objdump of the crashing method. I found that the crash is due to a bad memory access. The memory address is present in the MIPS register a0. Is there a way to track on how the register got this address other than backtracking (walkthrough)…
sr01853
  • 6,043
  • 1
  • 19
  • 39
0
votes
1 answer

How to use objdump to interleave source code in highly optimized object file?

I've got a highly optimized compiled C++ object file (compiled with g++, specifying -O3 -g -march=amdfam10 -Wall) with debug info. I'm using objdump -S "objname". Unfortunately interleaving the source doesn't seem to work, because sometimes I see…
Emanuele
  • 1,408
  • 1
  • 15
  • 39
0
votes
1 answer

how objdump handles global variables

I have made the following dummy code for testing /tmp/test.c contains the following: #include "test.h" #include #include struct s* p; unsigned char *c; void main(int argc, char ** argv) { memset(c, 0, 10); p->a = 10; …
Deaf Ear
  • 153
  • 12
0
votes
1 answer

Why doesn't my objdump -D of program look different from .S

I am learning the toolchains for my C++ and trying out the objdump. The disassembled file from objdump doesn't even have the word "Hello World". Why is that? Is it not reliable at all?
unj2
  • 52,135
  • 87
  • 247
  • 375
0
votes
2 answers

big-endian && little -endian?

Can any one tell me what this statement means: "Specify the endianness of the object files. This only affects disassembly. This can be useful when disassembling a file format which does not describe endianness information, such as S-records. "
hamb
  • 159
  • 1
  • 2
  • 11
0
votes
1 answer

objdump/readelf get variables information

I need to get the information about global variables from a compiled c program. I asked a similar question in here. The problem that I have now is that the program where I am trying to extract the variables info is very big and it takes 4 seconds…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
0
votes
1 answer

objdump in windows in order to see debug info

I need to get the addresses and member names of the variables in a .out file. I basically compiled a c program in linux using gcc and I will like to see the info of the file. There are a lot of examples on linux but I need to do it on windows.…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
0
votes
2 answers

Retrieving vptr(pointer to virtual Table aka VTABLE)from the Objdump utility?

How can we know the address of the VTABLEs (i.e corresponding vptr) using the objdump utility and dissembled code. vptr is generally stored in the first byte of object .(correct/edit this). There is this simple code using the virtual function :…
Raulp
  • 7,758
  • 20
  • 93
  • 155
-1
votes
1 answer

What does this mean in assembly

This is a example c code, compiled with gcc in mac os this is the code int main(int argc, char *argv[]) { char key[] = "key-123"; if(argc == 2){ printf("Checking key ... %s\n", argv[1]); if (strcmp(argv[1], key) == 0) { …
-1
votes
1 answer

What does e8 00 00 00 00 mean in a disassembled object file?

I know that these are the hex instructions, but aren't they usually 4 Bytes long? f5: e8 00 00 00 00 callq 0 this is one example of such a line in the output I get when I run objdump --disassemble file.o
-1
votes
1 answer

Creating shared object file in Go for an entire module

I am trying to create a .so file for entire Go module, my module directory looks something like this: goAgent/ -- cavagent.go file -- modules/ -- sample/ -- differentsample/ When I make a .so of the goAgent/ ,…
immukul
  • 87
  • 11
-1
votes
1 answer

objdump do not show machine code, but show asm

I have a simple cpp program in main.cpp: int factorial(int n) { int result = 1; for (int i = 1; i <= n; ++i) { result *= i; } return result; } int main() { factorial(10); } One can get an object file (main.o) out of this as: g++ -c…
skgbanga
  • 2,477
  • 2
  • 20
  • 29
1 2 3
31
32