1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic 2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o 3*9880d681SAndroid Build Coastguard Worker; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ 4*9880d681SAndroid Build Coastguard Worker; RUN: -shared -m elf_x86_64 -o %t.so %t2.o %t.o 5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-readobj -t %t.so | FileCheck %s 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; CHECK: Symbol { 8*9880d681SAndroid Build Coastguard Worker; CHECK: Name: f 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Value: 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Size: 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Binding: Local 12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Type: Function 13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Other 14*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: Seciton 15*9880d681SAndroid Build Coastguard Worker; CHECK: Section: .text 16*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: } 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 19*9880d681SAndroid Build Coastguard Workerdefine i32 @g() { 20*9880d681SAndroid Build Coastguard Worker call void @f() 21*9880d681SAndroid Build Coastguard Worker ret i32 0 22*9880d681SAndroid Build Coastguard Worker} 23*9880d681SAndroid Build Coastguard Workerdefine linkonce_odr hidden void @f() { 24*9880d681SAndroid Build Coastguard Worker ret void 25*9880d681SAndroid Build Coastguard Worker} 26