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