llvm-objdump: Add -s, which prints the contents of each section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142199 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer
2011-10-17 17:13:22 +00:00
parent d955cf2366
commit 1e8ba3fa21
2 changed files with 54 additions and 9 deletions
+2 -4
View File
@@ -3,9 +3,7 @@ RUN: | FileCheck %s -check-prefix COFF-i386
RUN: llvm-objdump -s %p/TestObjectFiles/trivial-object-test.elf-i386 \
RUN: | FileCheck %s -check-prefix ELF-i386
XFAIL: *
COFF-i386: trivial-object-test.coff-i386: file format pe-i386
COFF-i386: trivial-object-test.coff-i386: file format
COFF-i386: Contents of section .text:
COFF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
COFF-i386: 0010 0000e800 000000e8 00000000 8b442408 .............D$.
@@ -13,7 +11,7 @@ COFF-i386: 0020 83c40cc3 ....
COFF-i386: Contents of section .data:
COFF-i386: 0000 48656c6c 6f20576f 726c6421 00 Hello World!.
ELF-i386: trivial-object-test.elf-i386: file format elf32-i386
ELF-i386: trivial-object-test.elf-i386: file format
ELF-i386: Contents of section .text:
ELF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
ELF-i386: 0010 0000e8fc ffffffe8 fcffffff 8b442408 .............D$.