3 # RUN: split-file %s %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/1.s -o %t/1.o
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/2.s -o %t/2.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/3.s -o %t/3.o
7 # RUN: ld.lld -shared -soname=3 --version-script=%t/3.ver %t/3.o -o %t/3.so
8 # RUN: ld.lld -Map=%t/1.map %t/1.o %t/2.o %t/3.so -o %t/1
9 # RUN: FileCheck %s --input-file=%t/1.map
11 ## Both TUs reference func/copy which need a canonical PLT entry/copy relocation.
12 ## Test we print func/copy just once.
14 # CHECK-NEXT: <internal>:(.plt)
15 # CHECK-NEXT: func@v1{{$}}
16 # CHECK-NEXT: .dynamic
19 # CHECK-NEXT: <internal>:(.bss.rel.ro)
20 ## Ideally this is displayed as copy@v2.
21 # CHECK-NEXT: copy{{$}}
22 # CHECK-NEXT: .got.plt
27 .symver func, func@@@v1
32 .symver func, func@@@v1
38 .symver func, func@v1, remove