150
|
1 # REQUIRES: x86
|
|
2
|
|
3 # RUN: echo "{ global: foo*; bar*; local: *; };" > %t.script
|
|
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
5 # RUN: ld.lld -shared --version-script %t.script %t.o -o %t.so
|
|
6 # RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s
|
|
7
|
|
8 .globl foo1, bar1, zed1, local
|
|
9 foo1:
|
|
10 bar1:
|
|
11 zed1:
|
|
12 local:
|
|
13
|
|
14 # CHECK: bar1{{$}}
|
|
15 # CHECK-NEXT: foo1{{$}}
|
|
16 # CHECK-NOT: {{.}}
|
|
17
|
|
18 # RUN: echo "{ global : local; local: *; };" > %t1.script
|
|
19 # RUN: ld.lld -shared --version-script %t1.script %t.o -o %t.so
|
|
20 # RUN: llvm-readelf --dyn-syms %t.so | FileCheck --check-prefix=LOCAL %s
|
|
21
|
|
22 # LOCAL: local{{$}}
|
|
23 # LOCAL-NOT: {{.}}
|