[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / exclude-libs-undef.s
blob712591e4f684736cd3571a3129e1273ddf0ff652
1 # REQUIRES: x86
2 ## Test we don't assign VER_NDX_LOCAL to an undefined symbol.
3 ## If we do, an undefined weak will become non-preemptible,
4 ## and we will report an error when an R_PLT_PC (optimized to R_PC)
5 ## references the undefined weak (considered absolute).
7 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
8 # RUN: rm -f %t.a
9 # RUN: llvm-ar rc %t.a %t.o
10 # RUN: ld.lld -shared --whole-archive --exclude-libs=ALL %t.a -o %t.so
11 # RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s
13 # CHECK: 1: {{.*}} WEAK DEFAULT UND bar
14 # CHECK-NOT: 2:
16 .globl foo
17 .weak bar
18 foo:
19 call bar