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

objdump -s -j .rodata exefile

gives a side-by-side hex/printable ASCII dump of the contents of the rodata section like:

Contents of section .rodata:
 0000 67452301 efcdab89 67452301 efcdab89  gE#.....gE#.....
 0010 64636261 68676665 64636261 68676665  dcbahgfedcbahgfe

It doesn’t look like there’s anything in there to control formatting, but it’s a start. You could always undump the hex and feed it to od, I suppose 🙂

Leave a Comment