File: yaml2obj-readobj.test

package info (click to toggle)
llvm-toolchain-3.4 1%3A3.4.2-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 253,236 kB
  • ctags: 276,203
  • sloc: cpp: 1,665,580; ansic: 298,647; asm: 206,157; objc: 84,350; python: 73,119; sh: 23,466; perl: 5,679; makefile: 5,542; ml: 5,250; pascal: 2,467; lisp: 1,420; xml: 679; cs: 236; csh: 117
file content (25 lines) | stat: -rw-r--r-- 974 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | FileCheck %s --check-prefix COFF-I386

// COFF-I386:  Characteristics [ (0x200)
// COFF-I386-NEXT:    IMAGE_FILE_DEBUG_STRIPPED (0x200)
// COFF-I386-NEXT:  ]

// COFF-I386:      Relocations [
// COFF-I386-NEXT:   Section (1) .text {
// COFF-I386-NEXT:     Relocation {
// COFF-I386-NEXT:       Offset: 0xE
// COFF-I386-NEXT:       Type: IMAGE_REL_I386_DIR32 (6)
// COFF-I386-NEXT:       Symbol: L_.str
// COFF-I386-NEXT:     }
// COFF-I386-NEXT:     Relocation {
// COFF-I386-NEXT:       Offset: 0x13
// COFF-I386-NEXT:       Type: IMAGE_REL_I386_REL32 (20)
// COFF-I386-NEXT:       Symbol: _puts
// COFF-I386-NEXT:     }
// COFF-I386-NEXT:     Relocation {
// COFF-I386-NEXT:       Offset: 0x18
// COFF-I386-NEXT:       Type: IMAGE_REL_I386_REL32 (20)
// COFF-I386-NEXT:       Symbol: _SomeOtherFunction
// COFF-I386-NEXT:     }
// COFF-I386-NEXT:   }
// COFF-I386-NEXT: ]