objdump

Finding locations in machine code (gcc/objdump -d)

If you have a particular line of C code in mind to examine in the machine output, how would you locate it in objdump output. Here is an example if (cond) foo; bar(); and I want to see if bar was inlined as I'd like. Or would you use some alternative tool instead of objdump? ...

objdump for old ARM7TDMI (ARMv4T) showing instructions for newer architectures?!

Hello! I care about the success of GNU very much and wanted some feedback on what to do about a potential bug in objdump for ARM.... I'm examining the output of "objdump -D --target=binary -m arm7tdmi" and seeing instructions that do not exist on the ancient ARM7TDMI cores. (I'm looking at a file of random bits and treating it as a ra...

How can I tell, with something like objdump, if an object file has been built with -fPIC?

How can I tell, with something like objdump, if an object file has been built with -fPIC? Thanks, -Crazy Chenz ...

How can I examine contents of a data section of an ELF file on Linux?

I've been using objdump to look at assembly code in Linux ELF binaries. Sometimes there is an indirect jump through a jump table that is stored in the rodata (read-only data) section. I have tried Google and SO, but I must be wearing my stupid hat, because I cannot figure out how to get objdump or any other tool to show me the contents...

What does "-0x1(%edx,%ecx,1)" mean in objdump output?

Using objdump to understand a binary and I realize I'm not fluent enough in ASM syntax. What does the following notion mean? xor %al,-0x1(%edx,%ecx,1) And while you're at it - what should I search for in order to find docs about such notions? ...

Function name and address missing from Linux System.map

Hello all, I am doing embedded development on an AT91SAM9263 board and running into a strange problem. It is running debian Linux kernel 2.6.18.4 and is cross-compiled with arm-linux-gcc 3.4.6 and uses uClibc-0.9.28 for the C library. I am debugging a kernel device driver and a specific function is not appearing in the System.map file...

How to reverse the objdump's strip with only-keep-debug?

Hello In modern linux almost all objects are stripped and splitted in two parts. One - is executable itself and second is debug symbols, stripped out from original ELF. Such files are created with objcopy --only-keep-debug original.elf binary.dbg mv original.elf binary objcopy --strip-debug binary How can I merge binary and binary.d...

How to get information from objdump

I encounter a problem when reading information dumped out from an executable file in linux. The information is as follows: 804a0ea: 04 08 add $0x8, %al ... 804a0f4: a6 cmpsb %es:(%edi),%ds:(%esi) I have two questions: what does the address 804a0ea and 804a0f4 mean? the virtual address in the process's...

What is register %eiz?

In the following assembly code that I dumped out using objdump: lea 0x0(%esi,%eiz,1),%esi What is register %eiz? What does the preceding code mean? ...

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 and the complier gcc. With objdump and readelf can be seen see the total footprint and h...

objdump ELF and Windows

Hello, I am fairly new to this subject, that is ELF and any Linux related stuff. I am trying to write an ELF file and would prefer to do it on WinXP. My question is, can this be done with MS Visual Studio including the compilation? As far as my understanding goes, ELF files can not be compiled on Windows OSs. Well, at least that's wha...

Have Objdump- D only display specific function

I am having troubles using objdump in windows command prompt for a C program. I want to display the machine code of a specific function and lines. For example, in Linux I would enter: objdump -D x.out | grep -A20 main.: What would the equivalent be in windows? I am just digging into understanding machine code, so forgive me if my as...

Help using objdump : disassembling to arm

hi, 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, how do i go about doing this? Thanks, Steve ...