1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -r -t | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker// Test that relocations with local symbols are represented as relocations 4*9880d681SAndroid Build Coastguard Worker// with the section. They should be equivalent, but gas behaves like this. 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker movl foo, %r14d 7*9880d681SAndroid Build Coastguard Workerfoo: 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker// CHECK: Relocations [ 10*9880d681SAndroid Build Coastguard Worker// CHECK: Section {{.*}} .rela.text { 11*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32S .text 0x{{[^ ]+}} 12*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: } 13*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: ] 14