blob: e7ee2a016a40783aaa6e61801fc4d054d4b9044f [file] [log] [blame]
Rafael Espindola120cf572013-04-23 15:53:02 +00001RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | FileCheck %s --check-prefix COFF-I386
Simon Atanasyan926273d2014-05-15 16:14:02 +00002RUN: yaml2obj -o %t %p/Inputs/COFF/i386.yaml
3RUN: llvm-readobj -file-headers -relocations -expand-relocs %t \
4RUN: | FileCheck %s --check-prefix COFF-I386
Rafael Espindola5152e4f2013-04-04 20:30:52 +00005
6// COFF-I386: Characteristics [ (0x200)
7// COFF-I386-NEXT: IMAGE_FILE_DEBUG_STRIPPED (0x200)
8// COFF-I386-NEXT: ]
Rafael Espindola120cf572013-04-23 15:53:02 +00009
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
Martin Storsjo0239fd32019-01-03 08:08:23 +000016// COFF-I386-NEXT: SymbolIndex: 5
Rafael Espindola120cf572013-04-23 15:53:02 +000017// 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
Martin Storsjo0239fd32019-01-03 08:08:23 +000022// COFF-I386-NEXT: SymbolIndex: 6
Rafael Espindola120cf572013-04-23 15:53:02 +000023// 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
Martin Storsjo0239fd32019-01-03 08:08:23 +000028// COFF-I386-NEXT: SymbolIndex: 7
Rafael Espindola120cf572013-04-23 15:53:02 +000029// COFF-I386-NEXT: }
30// COFF-I386-NEXT: }
31// COFF-I386-NEXT: ]