1# REQUIRES: x86 2## Show that a symbol referenced from an object and defined in bitcode is 3## not internalized and is emitted in the output. 4 5# RUN: rm -rf %t.dir 6# RUN: split-file %s %t.dir 7# RUN: llvm-mc %t.dir/obj.s -o %t.o -filetype=obj -triple=x86_64-pc-linux 8# RUN: llvm-as %t.dir/bc.ll -o %t2.o 9# RUN: ld.lld %t2.o %t.o -o %t.so -shared 10# RUN: llvm-readobj --symbols %t.so | FileCheck %s 11 12# CHECK: Name: foo 13# CHECK-NEXT: Value: 14# CHECK-NEXT: Size: 15# CHECK-NEXT: Binding: Local 16# CHECK-NEXT: Type: Function 17# CHECK-NEXT: Other [ 18# CHECK-NEXT: STV_HIDDEN 19# CHECK-NEXT: ] 20# CHECK-NEXT: Section: .text 21 22#--- obj.s 23 .globl bar 24bar: 25 call foo 26 27#--- bc.ll 28target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 29target triple = "x86_64-unknown-linux-gnu" 30 31define hidden void @foo() { 32 ret void 33} 34