Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / relocatable-rel-iplt.s
blob3867ba1fedc1fb9515df569518f2ed71b866daab
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i686-- %s -o %t1.o
3 # RUN: ld.lld -r %t1.o -o %t2.o
4 # RUN: llvm-readobj --symbols %t2.o | FileCheck %s
6 // CHECK: Symbols [
7 // CHECK-NEXT: Symbol {
8 // CHECK-NEXT: Name: (0)
9 // CHECK-NEXT: Value: 0x0
10 // CHECK-NEXT: Size: 0
11 // CHECK-NEXT: Binding: Local (0x0)
12 // CHECK-NEXT: Type: None (0x0)
13 // CHECK-NEXT: Other: 0
14 // CHECK-NEXT: Section: Undefined (0x0)
15 // CHECK-NEXT: }
16 // CHECK-NEXT: Symbol {
17 // CHECK-NEXT: Name: .text (0)
18 // CHECK-NEXT: Value: 0x0
19 // CHECK-NEXT: Size: 0
20 // CHECK-NEXT: Binding: Local (0x0)
21 // CHECK-NEXT: Type: Section (0x3)
22 // CHECK-NEXT: Other: 0
23 // CHECK-NEXT: Section: .text (0x1)
24 // CHECK-NEXT: }
25 // CHECK-NEXT: Symbol {
26 // CHECK-NEXT: Name: __rel_iplt_start (1)
27 // CHECK-NEXT: Value: 0x0
28 // CHECK-NEXT: Size: 0
29 // CHECK-NEXT: Binding: Weak (0x2)
30 // CHECK-NEXT: Type: None (0x0)
31 // CHECK-NEXT: Other [ (0x2)
32 // CHECK-NEXT: STV_HIDDEN (0x2)
33 // CHECK-NEXT: ]
34 // CHECK-NEXT: Section: Undefined (0x0)
35 // CHECK-NEXT: }
36 // CHECK-NEXT: Symbol {
37 // CHECK-NEXT: Name: __rel_iplt_end (18)
38 // CHECK-NEXT: Value: 0x0
39 // CHECK-NEXT: Size: 0
40 // CHECK-NEXT: Binding: Weak (0x2)
41 // CHECK-NEXT: Type: None (0x0)
42 // CHECK-NEXT: Other [ (0x2)
43 // CHECK-NEXT: STV_HIDDEN (0x2)
44 // CHECK-NEXT: ]
45 // CHECK-NEXT: Section: Undefined (0x0)
46 // CHECK-NEXT: }
47 // CHECK-NEXT: ]
49 movl __rel_iplt_start, %eax
50 movl __rel_iplt_end, %eax
51 ret
53 .hidden __rel_iplt_start
54 .hidden __rel_iplt_end
55 .weak __rel_iplt_start
56 .weak __rel_iplt_end