[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / verneed-as-needed-weak.s
blob215ec8e218cc33ff25e4fa8eb3ba93a7ffef1dd3
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/verneed1.s -o %t1.o
3 # RUN: echo "v1 {}; v2 {}; v3 { local: *; };" > %t.script
4 # RUN: ld.lld -shared %t1.o --version-script %t.script -o %t.so
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
7 # RUN: ld.lld %t.o --as-needed %t.so -o %t
8 # RUN: llvm-readobj -V %t | FileCheck %s
10 # CHECK: VersionRequirements [
11 # CHECK-NEXT: ]
13 .weak f1
15 .globl _start
16 _start:
17 .data
18 .quad f1