This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Difference between objdump and readlelf output
- From: Tiron Adrian <tiron_adrian at yahoo dot com>
- To: binutils at sourceware dot org
- Date: Thu, 4 Jan 2007 03:41:01 -0800 (PST)
- Subject: Difference between objdump and readlelf output
Take a look at this please:
objdump -d -j .got.plt hello
hello: file format elf32-i386
Disassembly of section .got.plt:
08049550 <_GLOBAL_OFFSET_TABLE_>:
8049550: 84 94 04 08 00 00 00 00 00 00 00 00 ae 82 04 08 ................
8049560: be 82 04 08 ce 82 04 08 ........
[root@localhost understanding_elf]# readelf -x21 hello
Hex dump of section '.got.plt':
0x08049550 080482ae 00000000 00000000 08049484 ................
0x08049560 080482ce 080482be ........
Look
at the first and last word from the first line of each command's output
it looks to me that the word from address 8049550 are interchanged
with
the address 804955c. Am i correct?An then again on the next line the
two words are again interchanged. Besides the endianess wich
differs.....
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com