Rafael Espindola | 120cf57 | 2013-04-23 15:53:02 +0000 | [diff] [blame] | 1 | RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | FileCheck %s --check-prefix COFF-I386 |
Simon Atanasyan | 926273d | 2014-05-15 16:14:02 +0000 | [diff] [blame] | 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 |
Rafael Espindola | 5152e4f | 2013-04-04 20:30:52 +0000 | [diff] [blame] | 5 | |
| 6 | // COFF-I386: Characteristics [ (0x200) |
| 7 | // COFF-I386-NEXT: IMAGE_FILE_DEBUG_STRIPPED (0x200) |
| 8 | // COFF-I386-NEXT: ] |
Rafael Espindola | 120cf57 | 2013-04-23 15:53:02 +0000 | [diff] [blame] | 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 |
Martin Storsjo | 0239fd3 | 2019-01-03 08:08:23 +0000 | [diff] [blame] | 16 | // COFF-I386-NEXT: SymbolIndex: 5 |
Rafael Espindola | 120cf57 | 2013-04-23 15:53:02 +0000 | [diff] [blame] | 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 |
Martin Storsjo | 0239fd3 | 2019-01-03 08:08:23 +0000 | [diff] [blame] | 22 | // COFF-I386-NEXT: SymbolIndex: 6 |
Rafael Espindola | 120cf57 | 2013-04-23 15:53:02 +0000 | [diff] [blame] | 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 |
Martin Storsjo | 0239fd3 | 2019-01-03 08:08:23 +0000 | [diff] [blame] | 28 | // COFF-I386-NEXT: SymbolIndex: 7 |
Rafael Espindola | 120cf57 | 2013-04-23 15:53:02 +0000 | [diff] [blame] | 29 | // COFF-I386-NEXT: } |
| 30 | // COFF-I386-NEXT: } |
| 31 | // COFF-I386-NEXT: ] |