19 lines · plain
1# REQUIRES: asserts2# RUN: rm -rf %t && mkdir -p %t3# RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o \4# RUN: %t/external_weak.o %S/Inputs/external_weak.s5# RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o \6# RUN: %t/external_weak_main.o %S/Inputs/external_weak_main.s7# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \8# RUN: %t/external_weak.o %t/external_weak_main.o 2>&1 \9# RUN: | FileCheck %s10# CHECK: Created ELFLinkGraphBuilder for "{{.*}}external_weak_main.o"11# CHECK: Creating defined graph symbol for ELF symbol "foo"12# CHECK: External symbols:13# CHECK: {{.*}} linkage: weak, scope: default, dead - foo14# CHECK: section .text:15# CHECK: {{.*}} kind = CallBranchDeltaRestoreTOC, target = addressable@{{.*}}16# `foo` is weak in both relocatable files. `foo` is resolved to the one17# defined in `%t/external_weak.o`. So calling `foo` in `%t/external_weak_main.o`18# is expected to be an external function call.19