• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Check how we print relocations.
2
3# RUN: llvm-readobj -r %p/Inputs/trivial.obj.coff-i386 \
4# RUN:   | FileCheck %s --check-prefix COFF
5# RUN: llvm-readobj -r %p/Inputs/bad-relocs.obj.coff-i386 \
6# RUN:   | FileCheck %s --check-prefix BAD-COFF-RELOCS
7# RUN: llvm-readobj -r %p/Inputs/relocs-no-symtab.obj.coff-i386 \
8# RUN:   | FileCheck %s --check-prefix BAD-COFF-RELOCS
9
10# COFF:      Relocations [
11# COFF-NEXT:   Section (1) .text {
12# COFF-NEXT:     0x4 IMAGE_REL_I386_DIR32 .data (4)
13# COFF-NEXT:     0x9 IMAGE_REL_I386_REL32 _puts (7)
14# COFF-NEXT:     0xE IMAGE_REL_I386_REL32 _SomeOtherFunction (8)
15# COFF-NEXT:   }
16# COFF-NEXT: ]
17
18# BAD-COFF-RELOCS:      Relocations [
19# BAD-COFF-RELOCS-NEXT:   Section (1) sec {
20# BAD-COFF-RELOCS-NEXT:     0xDEADBEEF IMAGE_REL_I386_ABSOLUTE -
21# BAD-COFF-RELOCS-NEXT:   }
22# BAD-COFF-RELOCS-NEXT: ]
23