brintos

brintos / llvm-project-archived public Read only

0
0
Text · 824 B · 5ce03ff Raw
24 lines · plain
1; REQUIRES: x862; RUN: llvm-as %S/Inputs/undef.ll -o %tundef.o3; RUN: llvm-as %s -o %tweakundef.o4; RUN: llvm-as %S/Inputs/archive-3.ll -o %tdef.o5 6;; Test that the lazy bitcode %tdef.o is fetched.7; RUN: ld.lld %tundef.o --start-lib %tdef.o --end-lib -shared -o %t.so8; RUN: llvm-nm %t.so | FileCheck %s9 10;; Test %tweakundef.o does not change STB_GLOBAL to STB_WEAK.11; RUN: ld.lld %tundef.o %tweakundef.o --start-lib %tdef.o --end-lib -shared -o %t.so12; RUN: llvm-nm %t.so | FileCheck %s13 14;; %tweakundef.o does not fetch %tdef.o but %tundef.o does.15; RUN: ld.lld --start-lib %tdef.o --end-lib %tweakundef.o %tundef.o -shared -o %t.so16; RUN: llvm-nm %t.so | FileCheck %s17 18; CHECK: T foo19 20target triple = "x86_64-unknown-linux-gnu"21target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"22 23declare extern_weak void @foo()24