Mercurial > hg > CbC > CbC_llvm
view lld/test/ELF/allow-shlib-undefined.s @ 192:d7606dcf6fce
Added tag llvm10 for changeset 0572611fdcc8
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 18:01:34 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
line wrap: on
line source
# REQUIRES: x86 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %p/Inputs/allow-shlib-undefined.s -o %t1.o # RUN: ld.lld -shared %t1.o -o %t.so # RUN: ld.lld --allow-shlib-undefined %t.o %t.so -o /dev/null # RUN: not ld.lld --no-allow-shlib-undefined %t.o %t.so -o /dev/null 2>&1 | FileCheck %s # Executable defaults to --no-allow-shlib-undefined # RUN: not ld.lld %t.o %t.so -o /dev/null 2>&1 | FileCheck %s # -shared defaults to --allow-shlib-undefined # RUN: ld.lld -shared %t.o %t.so -o /dev/null # RUN: echo | llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %tempty.o # RUN: ld.lld -shared %tempty.o -o %tempty.so # RUN: ld.lld -shared %t1.o %tempty.so -o %t2.so # RUN: ld.lld --no-allow-shlib-undefined %t.o %t2.so -o /dev/null # DSO with undefines: # should link with or without any of these options. # RUN: ld.lld -shared %t1.o -o /dev/null # RUN: ld.lld -shared --allow-shlib-undefined %t1.o -o /dev/null # RUN: ld.lld -shared --no-allow-shlib-undefined %t1.o -o /dev/null .globl _start _start: callq _shared@PLT # CHECK: undefined reference to _unresolved