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: {{2|0}}
14; CHECK-NEXT:    Section: .text
15; CHECK-NEXT:  }
16
17target triple = "x86_64-unknown-linux-gnu"
18define i32 @g() {
19  call void @f()
20  ret i32 0
21}
22define linkonce_odr hidden void @f() {
23  ret void
24}
25