Tuesday, March 5, 2013

readelf -x .text : from Hex dump in objdump and readelf

I did not know that readelf -x option could be the *name* of a section, not just the number, but I saw it here, and sure enough, it is also in the readelf man page on our RedHat systems:
...

$ readelf -x .text null.o

Hex dump of section '.text':
 0x00000000 ec8351e5 8955fc71 fff0e483 04244c8d .L$.....q.U..Q..
 0x00000010 c7000000 00ec45c7 00000000 e845c734 4.E......E......
 0x00000020 f845c700 000000f4 45c70000 0000f045 E......E......E.
 0x00000030 00002404 c7042444 89e8458b 00000000 .....E..D$...$..
 0x00000040 04c70424 4489ec45 8bffffff fce80000 ........E..D$...
 0x00000050 244489f0 458bffff fffce800 00000c24 $..........E..D$
 0x00000060 f4458bff fffffce8 00000018 2404c704 ...$..........E.
 0x00000070 fffffffc e8000000 242404c7 04244489 .D$...$$........
 0x00000080 fce80000 00302404 c7042444 89f8458b .E..D$...$0.....
 0x00000090   ffffff fce80000 00012404 c7ffffff .....$.........
$
...
NAME
       readelf - Displays information about ELF files.

SYNOPSIS
       readelf [-a|--all]
        ...
               [-D|--use-dynamic]
               [-x |--hex-dump=]
...


Hex dump in objdump and readelf

'via Blog this'

No comments:

Post a Comment