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