~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/ELF/reloc-same-name-section.s

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r --expand-relocs | FileCheck %s
 
2
 
 
3
// test that we produce one relocation against each section.
 
4
 
 
5
// CHECK:      Relocations [
 
6
// CHECK-NEXT:   Section {{.*}} {
 
7
// CHECK-NEXT:     Relocation {
 
8
// CHECK-NEXT:       Offset:
 
9
// CHECK-NEXT:       Type:
 
10
// CHECK-NEXT:       Symbol:  .foo (4)
 
11
// CHECK-NEXT:       Addend:
 
12
// CHECK-NEXT:     }
 
13
// CHECK-NEXT:     Relocation {
 
14
// CHECK-NEXT:       Offset:
 
15
// CHECK-NEXT:       Type:
 
16
// CHECK-NEXT:       Symbol:  .foo (5)
 
17
// CHECK-NEXT:       Addend:
 
18
// CHECK-NEXT:     }
 
19
// CHECK-NEXT:   }
 
20
// CHECK-NEXT: ]
 
21
 
 
22
        .section        .foo,"aG",@progbits,v,comdat
 
23
f:
 
24
 
 
25
        .section        .foo,"a",@progbits
 
26
g:
 
27
 
 
28
 
 
29
        .section        .bar
 
30
        .quad   f
 
31
        .quad   g