blob: d1b1076b6ea1df79e8e7dd453eaa0db26e2a6e90 [file] [log] [blame]
Rafael Espindola33466a72014-08-21 20:28:55 +00001; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
2; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o
Rafael Espindola14ebbc62015-03-24 22:20:19 +00003; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
4; RUN: -shared -m elf_x86_64 -o %t.so %t2.o %t.o
Rafael Espindolaf1d2fc62014-09-03 16:16:02 +00005; RUN: llvm-readobj -t %t.so | FileCheck %s
Rafael Espindola33466a72014-08-21 20:28:55 +00006
Rafael Espindolaf1d2fc62014-09-03 16:16:02 +00007; CHECK: Symbol {
8; CHECK: Name: f
9; CHECK-NEXT: Value:
10; CHECK-NEXT: Size:
11; CHECK-NEXT: Binding: Local
12; CHECK-NEXT: Type: Function
Rafael Espindolafe268642016-03-24 16:45:41 +000013; CHECK-NEXT: Other
14; CHECK-NOT: Seciton
15; CHECK: Section: .text
Rafael Espindolaf1d2fc62014-09-03 16:16:02 +000016; CHECK-NEXT: }
Rafael Espindola33466a72014-08-21 20:28:55 +000017
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}