xref: /minix3/external/bsd/llvm/dist/llvm/test/Object/yaml2obj-readobj.test (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel SambucRUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | FileCheck %s --check-prefix COFF-I386
2*0a6a1f1dSLionel SambucRUN: yaml2obj -o %t %p/Inputs/COFF/i386.yaml
3*0a6a1f1dSLionel SambucRUN: llvm-readobj -file-headers -relocations -expand-relocs %t \
4*0a6a1f1dSLionel SambucRUN:   | FileCheck %s --check-prefix COFF-I386
5f4a2713aSLionel Sambuc
6f4a2713aSLionel Sambuc// COFF-I386:  Characteristics [ (0x200)
7f4a2713aSLionel Sambuc// COFF-I386-NEXT:    IMAGE_FILE_DEBUG_STRIPPED (0x200)
8f4a2713aSLionel Sambuc// COFF-I386-NEXT:  ]
9f4a2713aSLionel Sambuc
10f4a2713aSLionel Sambuc// COFF-I386:      Relocations [
11f4a2713aSLionel Sambuc// COFF-I386-NEXT:   Section (1) .text {
12f4a2713aSLionel Sambuc// COFF-I386-NEXT:     Relocation {
13f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Offset: 0xE
14f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Type: IMAGE_REL_I386_DIR32 (6)
15f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Symbol: L_.str
16f4a2713aSLionel Sambuc// COFF-I386-NEXT:     }
17f4a2713aSLionel Sambuc// COFF-I386-NEXT:     Relocation {
18f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Offset: 0x13
19f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Type: IMAGE_REL_I386_REL32 (20)
20f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Symbol: _puts
21f4a2713aSLionel Sambuc// COFF-I386-NEXT:     }
22f4a2713aSLionel Sambuc// COFF-I386-NEXT:     Relocation {
23f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Offset: 0x18
24f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Type: IMAGE_REL_I386_REL32 (20)
25f4a2713aSLionel Sambuc// COFF-I386-NEXT:       Symbol: _SomeOtherFunction
26f4a2713aSLionel Sambuc// COFF-I386-NEXT:     }
27f4a2713aSLionel Sambuc// COFF-I386-NEXT:   }
28f4a2713aSLionel Sambuc// COFF-I386-NEXT: ]
29