brintos

brintos / llvm-project-archived public Read only

0
0
Text · 844 B · 2ee707e Raw
34 lines · plain
1# REQUIRES: x862## Show that a symbol referenced from an object and defined in bitcode is3## not internalized and is emitted in the output.4 5# RUN: rm -rf %t.dir6# RUN: split-file %s %t.dir7# RUN: llvm-mc %t.dir/obj.s -o %t.o -filetype=obj -triple=x86_64-pc-linux8# RUN: llvm-as %t.dir/bc.ll -o %t2.o9# RUN: ld.lld %t2.o %t.o -o %t.so -shared10# RUN: llvm-readobj --symbols %t.so | FileCheck %s11 12# CHECK:      Name: foo13# CHECK-NEXT: Value:14# CHECK-NEXT: Size:15# CHECK-NEXT: Binding: Local16# CHECK-NEXT: Type: Function17# CHECK-NEXT: Other [18# CHECK-NEXT:   STV_HIDDEN19# CHECK-NEXT: ]20# CHECK-NEXT: Section: .text21 22#--- obj.s23  .globl  bar24bar:25  call foo26 27#--- bc.ll28target 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 void33}34