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

To print Output of a program in a formatted version

I want to run objdump -d [sample] command in my program and then I want to shows the output of it in a formated version. For example I want to show its output with one tab in each line of its output. How can I do that? cmd1 = "objdump -d " name =…
user7995295
-1
votes
1 answer

How to eliminate middle column fast from objdump command output?

I have a problem when cut information dumped out from an executable file in linux. The information is as follows: 08048060 <__bss_start-0x100a>: 8048060: 31 db xor %ebx,%ebx 8048062: 53 push %ebx …
Anvh
  • 11
  • 3
-1
votes
1 answer

What do these instructions mean? (Disassembly)

I almost sure ebp+0x8 points to a string (the program actually asks thru a prompt for it, but I am not sure where it's stored). What's the general idea of the lines? Why add 1 to the 32-bit portion of ebp+8? mov eax,DWORD PTR [ebp+0x8] movzx …
j1nma
  • 457
  • 3
  • 9
  • 24
-1
votes
1 answer

combination of objdump and gdb

It is about reverse engineering in linux: if I have a .c file and I compile it with gdb all it's fine. But how can I obtain the same result starting from an executable file? I tried objdump -M intel -D file to disassemble but then I would like to…
StackUser
  • 1,530
  • 3
  • 13
  • 17
-1
votes
2 answers

which c code will gets changed to rlwinm power PC assembly instruciton

which c code will gets changed to rlwinm power PC assembly instruciton?? This is the snapshot of objdump.. if(!pool || pool->maxPoolSize > SEQ_MODULUS ) /* Invalid mask or pointer is null */ 29ccc: 41 82 00 dc beq- 29da8…
user2185454
  • 27
  • 1
  • 1
  • 5
-2
votes
1 answer

Why does powerpc need this additional fluff to make a raw machine code function work?

I'm working on a simple JIT compiler for PowerPC, I followed the examples in https://github.com/spencertipping/jit-tutorial to get a hang of how to work with it. The problem is that the identity function in the second example "jitproto.c" can't…
nioroso
  • 65
  • 8
-2
votes
1 answer

C++ objdump use and disassembly

On a linux server, the command would be $ objdump -t exercise11 > symbol_table.txt The intention is to find the memory address and size (in bytes) for the three global variables in a program. The second portion is equivalent to $ objdump -S…
-2
votes
1 answer

Using objump above the C program, need to copy from it

I would like to ask you guys for a help. I need to use objdump command on a C-code file, disassemble it and print out names (anywhere, preferably on the stdout) of the functions (and their dependency on others) in it (in format of "caller =>…
-3
votes
1 answer

What does a branch target like a2f mean in objdump disassembly?

0000000000000a24 : a24: 83 fe 0c cmp $0xc,%esi a27: 74 06 je a2f a29: b8 00 00 00 00 mov $0x0,%eax a2e: c3 retq a2f: 80 7f 0b 48 …
-3
votes
3 answers

Compiling C to 32-bit assembly with GCC doesn't match a book

I have been trying to compile this C program to assembly but it hasn't been working fine. I am reading Dennis Yurichev Reverse Engineering for Beginner but I am not getting the same output. Its a simple hello world statement. I am trying to get the…
opobtdfs
  • 5
  • 2
-3
votes
1 answer

can some help understand this objdump of c

08048544 : 8048544: 55 push %ebp 8048545: 89 e5 mov %esp,%ebp 8048547: 83 ec 38 sub $0x38,%esp 804854a: 8b 45 0c mov 0xc(%ebp),%eax …
Arihcg Jar
  • 11
  • 1
-5
votes
1 answer

How to find object code of c++ file

I want check what is object code of .cpp file .For example file is File is : lib_mylib.cpp int fun() { return 2;} int fun1(void) { return 2;} int fun2(void) { return 2;} I want to check object code for this file lib_mylib.cpp .I want to…
TechEnthusiast
  • 273
  • 4
  • 18
1 2 3
31
32