27 lines · plain
1; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic2; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o3; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN: -shared -m elf_x86_64 -o %t.so %t2.o %t.o5; RUN: llvm-readobj --symbols %t.so | FileCheck %s6 7; CHECK: Symbol {8; CHECK: Name: f9; CHECK-NEXT: Value:10; CHECK-NEXT: Size:11; CHECK-NEXT: Binding: Local12; CHECK-NEXT: Type: Function13; CHECK-NEXT: Other14; CHECK-NOT: Seciton15; CHECK: Section: .text16; CHECK-NEXT: }17 18target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"19target triple = "x86_64-unknown-linux-gnu"20define i32 @g() {21 call void @f()22 ret i32 023}24define linkonce_odr hidden void @f() {25 ret void26}27