Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / dont-export-hidden.s
blob651c024a03fe76d21ff402fcdaf97c12067bed45
1 // REQUIRES: x86
2 // RUN: llvm-mc %p/Inputs/shared.s -o %t.o -filetype=obj -triple=x86_64-pc-linux
3 // RUN: llvm-mc %s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
4 // RUN: ld.lld %t.o -o %t.so -shared
5 // RUN: ld.lld %t2.o %t.so -o %t.exe
6 // RUN: llvm-readobj --dyn-symbols %t.exe | FileCheck %s
8 .global _start
9 _start:
10 .global bar
11 .hidden bar
12 bar:
14 .global bar2
15 bar2:
17 .global foo
18 foo:
20 // CHECK: DynamicSymbols [
21 // CHECK-NEXT: Symbol {
22 // CHECK-NEXT: Name:
23 // CHECK-NEXT: Value: 0x0
24 // CHECK-NEXT: Size: 0
25 // CHECK-NEXT: Binding: Local
26 // CHECK-NEXT: Type: None
27 // CHECK-NEXT: Other: 0
28 // CHECK-NEXT: Section: Undefined
29 // CHECK-NEXT: }
30 // CHECK-NEXT: Symbol {
31 // CHECK-NEXT: Name: bar2
32 // CHECK-NEXT: Value:
33 // CHECK-NEXT: Size: 0
34 // CHECK-NEXT: Binding: Global
35 // CHECK-NEXT: Type: None
36 // CHECK-NEXT: Other: 0
37 // CHECK-NEXT: Section: .text
38 // CHECK-NEXT: }
39 // CHECK-NEXT: ]