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