[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / version-script-undef.s
blobadb5d7db8d506251972dd502396a9323a66d81d1
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "{ local: *; };" > %t.script
4 # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
5 # RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s
7 # CHECK: DynamicSymbols [
8 # CHECK-NEXT: Symbol {
9 # CHECK-NEXT: Name:
10 # CHECK-NEXT: Value: 0x0
11 # CHECK-NEXT: Size: 0
12 # CHECK-NEXT: Binding: Local (0x0)
13 # CHECK-NEXT: Type: None (0x0)
14 # CHECK-NEXT: Other: 0
15 # CHECK-NEXT: Section: Undefined (0x0)
16 # CHECK-NEXT: }
17 # CHECK-NEXT: Symbol {
18 # CHECK-NEXT: Name: bar
19 # CHECK-NEXT: Value: 0x0
20 # CHECK-NEXT: Size: 0
21 # CHECK-NEXT: Binding: Weak (0x2)
22 # CHECK-NEXT: Type: None (0x0)
23 # CHECK-NEXT: Other: 0
24 # CHECK-NEXT: Section: Undefined (0x0)
25 # CHECK-NEXT: }
26 # CHECK-NEXT: Symbol {
27 # CHECK-NEXT: Name: foo
28 # CHECK-NEXT: Value: 0x0
29 # CHECK-NEXT: Size: 0
30 # CHECK-NEXT: Binding: Global (0x1)
31 # CHECK-NEXT: Type: None (0x0)
32 # CHECK-NEXT: Other: 0
33 # CHECK-NEXT: Section: Undefined (0x0)
34 # CHECK-NEXT: }
35 # CHECK-NEXT: ]
37 .weak bar
38 .global foo
39 .data
40 .dc.a foo
41 .dc.a bar