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 23f: 24 25 .section .foo,"a",@progbits 26g: 27 28 29 .section .bar 30 .quad f 31 .quad g 32