Merging r260587:
[oota-llvm.git] / test / Object / objdump-section-content.test
1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -s - | FileCheck %s -check-prefix COFF-i386
2 RUN: llvm-objdump -s %p/Inputs/trivial-object-test.elf-i386 \
3 RUN:              | FileCheck %s -check-prefix ELF-i386
4 RUN: llvm-objdump -s %p/Inputs/shared-object-test.elf-i386 \
5 RUN:              | FileCheck %s -check-prefix BSS
6
7 COFF-i386: file format
8 COFF-i386: Contents of section .text:
9 COFF-i386:  0000 83ec0cc7 44240800 000000c7 04240000  ....D$.......$..
10 COFF-i386:  0010 0000e800 000000e8 00000000 8b442408  .............D$.
11 COFF-i386:  0020 83c40cc3                             ....
12 COFF-i386: Contents of section .data:
13 COFF-i386:  0000 48656c6c 6f20576f 726c6421 00        Hello World!.
14
15 ELF-i386: trivial-object-test.elf-i386:     file format
16 ELF-i386: Contents of section .text:
17 ELF-i386:  0000 83ec0cc7 44240800 000000c7 04240000  ....D$.......$..
18 ELF-i386:  0010 0000e8fc ffffffe8 fcffffff 8b442408  .............D$.
19 ELF-i386:  0020 83c40cc3                             ....
20 ELF-i386: Contents of section .rodata.str1.1:
21 ELF-i386:  0024 48656c6c 6f20576f 726c6421 00        Hello World!.
22
23 BSS: Contents of section .bss:
24 BSS-NEXT: <skipping contents of bss section at [12c8, 12cc)>