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
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