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

Why assembly produced by objdump is huge?

I am trying to view the assembly for my simple C application. So, I have tried to produce assembly from binary by using objdump and it produces about 4.3MB sized file with 103228 lines of assembly code. Then, I have tried to do so by providing -S &…
tod
  • 1,539
  • 4
  • 17
  • 43
0
votes
1 answer

Library function objdump output

I have the following objdump output when debugging a crash. I could narrow down the issue to the following function LanManager::Interface() library function, but with my little experience with object code I haven't been able to work out much more…
artm
  • 17,291
  • 6
  • 38
  • 54
0
votes
1 answer

Find member by offset

I have a (big) class and an offset into that class. How can I efficiently find the member defined at that offset? Example: struct Dummy { int a, b, c; } Given an offset of 4 and assuming sizeof(int) == 4, I would like to get 'b'. Obviously I…
mbschenkel
  • 1,865
  • 1
  • 18
  • 40
0
votes
4 answers

C/C++ memory footprint, per source file

In C programming, is there any way to determine how much a single source code file contributes to the final memory footprint? Let us assume a simple C-program consisting of source files test1.c, test2.c, test3.c, and so on. The environment is Linux…
ika
  • 1
0
votes
1 answer

objdump -- File Truncated

When I run objdump -d on a linux server (at University) I get the following: kmwe236@kmwe236:~/Downloads/buflab-handout$ objdump -d bufbomb objdump: bufbomb: File truncated What's going on here?
Kendall Weihe
  • 193
  • 5
  • 18
0
votes
2 answers

Pin tool and itrace

Hello i run the pin toll itrace.cpp file to get the trace of the code. #include #include "pin.H" FILE * trace; // This function is called before every instruction is executed // and prints the IP VOID printip(VOID *ip) { fprintf(trace,…
Panayiotis Irakleous
  • 2,696
  • 1
  • 23
  • 36
0
votes
1 answer

Combining a lib and it's debug symbols to produce source-interleaved disassembly

I've both libc6 and libc6-dbg packages installed. What I want to do is to display the disassembly of ld.so with source interleaved. I also have the glibc source placed in a chroot, reachable at the exact location as displayed by DW_AT_comp_dir in…
Jeenu
  • 2,109
  • 2
  • 20
  • 27
0
votes
3 answers

How to see executable content under AIX

I have a question about executables and C. If you had to know the content (the version of each .c file written in a commentary) of an executable BUT you just have the executable, you don't have the sources. How do you proceed ? I've seen the "nm"…
Ežekiel
  • 15
  • 6
0
votes
0 answers

objdump full of zeroes

The objdump of my binary returns a lot of functions that seem correct, but then there is a field of functions like this: 08c0ee1c : 8c0ee1c: 00 00 add %al,(%eax) ... 08c0ee20 : 8c0ee20: …
vuolen
  • 464
  • 4
  • 12
0
votes
1 answer

Disassemble a file and get the bytes from the text section

I am trying to disassemble a file on Ubuntu and extract only the text section. To do this I am using objdump -d executable_file > dump. This gives me nice human-readable output. However, I am looking for the binary bytes (which are displayed in the…
ose
  • 4,065
  • 2
  • 24
  • 40
0
votes
2 answers

C std library don't appear to be linked in object file

I am using a program like this with math.h function "sin" and stdio.h function"printf" used #include #include int main () { int x = sin(14); printf("hello"); return 0; } And as stated by ephemient here that libc.so…
Jay Shenawy
  • 953
  • 1
  • 12
  • 22
0
votes
0 answers

How to use nm or objdump and/or any other available tool to pinpoint an offending function/method in a .so file?

The issue: migration issues from RH5 (gcc 4.1.2 and GLIBC 2.5) to RH6 (gcc 4.4.7 and GLIBC 2.12) Details: I am migrating a big project from RH5 (gcc 4.1.2) to RH6 (gcc 4.4.7) and everything compiles and links without any hiccups. The code compiled…
0
votes
1 answer

How to compile objdump for the m32c architecture

I would like to use objdump to view binary m32c files. When I type in: objdump -i the architecture list returned is i386 based. Looking at the source code from binutils it appears that the m32c architecture is supported, just not compiled in by…
b1tflpr
  • 33
  • 5
0
votes
0 answers

Objdump stops disassembling after label

I'm designing an AArch64 application in assembly and C, using Linaro toolchain, and frequently use objdump to look at my own disassembled binary. However, objdump does not decode part of file, and treats it as data. It always happens after a second…
bns
  • 1
0
votes
0 answers

objdump -W sees line numbers, objdump -drl and gdb don't?

There are a lot of questions with missing source files etc, and I tried all that I could find to no avail. This is about a library of mine, with some helper applications. I use autotools (and libtool). I have compiled my code with -g and no…
Shahbaz
  • 46,337
  • 19
  • 116
  • 182