1RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj --file-headers -r --expand-relocs - | FileCheck %s --check-prefix COFF-I386 2RUN: yaml2obj -o %t %p/Inputs/COFF/i386.yaml 3RUN: llvm-readobj --file-headers -r --expand-relocs %t \ 4RUN: | 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: SymbolIndex: 5 17// COFF-I386-NEXT: } 18// COFF-I386-NEXT: Relocation { 19// COFF-I386-NEXT: Offset: 0x13 20// COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32 (20) 21// COFF-I386-NEXT: Symbol: _puts 22// COFF-I386-NEXT: SymbolIndex: 6 23// COFF-I386-NEXT: } 24// COFF-I386-NEXT: Relocation { 25// COFF-I386-NEXT: Offset: 0x18 26// COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32 (20) 27// COFF-I386-NEXT: Symbol: _SomeOtherFunction 28// COFF-I386-NEXT: SymbolIndex: 7 29// COFF-I386-NEXT: } 30// COFF-I386-NEXT: } 31// COFF-I386-NEXT: ] 32