48 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: echo "LIBSAMPLE_1.0 { global: a; local: *; };" > %t.script4# RUN: echo "LIBSAMPLE_2.0 { global: b; local: *; } LIBSAMPLE_1.0;" >> %t.script5# RUN: echo "LIBSAMPLE_3.0 { global: c; } LIBSAMPLE_2.0;" >> %t.script6# RUN: ld.lld --version-script %t.script --undefined-version -shared -soname shared %t.o -o %t.so7# RUN: llvm-readobj -V --dyn-syms %t.so | FileCheck --check-prefix=DSO %s8 9# DSO: VersionDefinitions [10# DSO-NEXT: Definition {11# DSO-NEXT: Version: 112# DSO-NEXT: Flags [ (0x1)13# DSO-NEXT: Base (0x1)14# DSO-NEXT: ]15# DSO-NEXT: Index: 116# DSO-NEXT: Hash: 12783019617# DSO-NEXT: Name: shared18# DSO-NEXT: Predecessors: []19# DSO-NEXT: }20# DSO-NEXT: Definition {21# DSO-NEXT: Version: 122# DSO-NEXT: Flags [ (0x0)23# DSO-NEXT: ]24# DSO-NEXT: Index: 225# DSO-NEXT: Hash: 9845718426# DSO-NEXT: Name: LIBSAMPLE_1.027# DSO-NEXT: Predecessors: []28# DSO-NEXT: }29# DSO-NEXT: Definition {30# DSO-NEXT: Version: 131# DSO-NEXT: Flags [ (0x0)32# DSO-NEXT: ]33# DSO-NEXT: Index: 334# DSO-NEXT: Hash: 9845641635# DSO-NEXT: Name: LIBSAMPLE_2.036# DSO-NEXT: Predecessors: []37# DSO-NEXT: }38# DSO-NEXT: Definition {39# DSO-NEXT: Version: 140# DSO-NEXT: Flags [ (0x0)41# DSO-NEXT: ]42# DSO-NEXT: Index: 443# DSO-NEXT: Hash: 9845667244# DSO-NEXT: Name: LIBSAMPLE_3.045# DSO-NEXT: Predecessors: []46# DSO-NEXT: }47# DSO-NEXT: ]48