blob: 3bd0c6b0269a75fc55e8c9e1d9d68398c3253832 [file] [log] [blame]
Rafael Espindolab716e622013-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 Atanasyan73e047e2014-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 Espindola77334662013-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 Espindolab716e622013-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
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: ]