33 lines · plain
1# REQUIRES: x862## --exclude-libs can hide version symbols.3 4# RUN: rm -rf %t && split-file %s %t5# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o6# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/b.s -o %t/b.o7# RUN: llvm-ar rc %t/b.a %t/b.o8# RUN: ld.lld -shared %t/a.o %t/b.a --version-script=%t/ver -o %t.so9# RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s10# RUN: ld.lld -shared %t/a.o %t/b.a --exclude-libs=b.a --version-script=%t/ver -o %t.so11# RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s --check-prefix=NO12 13# CHECK: foo@@v214# CHECK: bar@v115# NO-NOT: foo@@v216# NO-NOT: bar@v117 18#--- a.s19.globl _start20_start:21 call foo22 23#--- b.s24.symver bar_v1, bar@v125.globl foo, bar_v126foo:27bar_v1:28 ret29 30#--- ver31v1 {};32v2 { foo; };33