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