Skip to content

Instantly share code, notes, and snippets.

@ekeyme
Created December 2, 2016 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekeyme/7e3513caddb072d7f33e0e31e3505b71 to your computer and use it in GitHub Desktop.
Save ekeyme/7e3513caddb072d7f33e0e31e3505b71 to your computer and use it in GitHub Desktop.
objdump output of my compiled C program
[ekeyme@castor tmp]$ objdump -s -j .rodata /mnt/bioinfo/ekeyme/tmp/t
/mnt/bioinfo/ekeyme/tmp/t: file format elf64-x86-64
Contents of section .rodata:
400658 01000200 00000000 00000000 00000000 ................
400668 41424344 00000000 73747220 636f6e74 ABCD....str cont
400678 656e743a 2025732c 20737472 20616464 ent: %s, str add
400688 72657373 3a202570 0a007374 725b305d ress: %p..str[0]
400698 3a202563 20616464 72657373 3a202570 : %c address: %p
4006a8 0a007374 725b315d 3a202563 20616464 ..str[1]: %c add
4006b8 72657373 3a202570 0a007374 725b325d ress: %p..str[2]
4006c8 3a202563 20616464 72657373 3a202570 : %c address: %p
4006d8 0a007374 725b335d 3a202563 20616464 ..str[3]: %c add
4006e8 72657373 3a202570 0a006865 6c6c6f00 ress: %p..hello.
4006f8 25700a00 %p..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment