Skip to content

Commit 5800242

Browse files
committed
modify test case to introduce local symbols
1 parent df987d5 commit 5800242

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

lld/test/ELF/aarch64-got-merging-icf.s

+7-18
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,7 @@
1818
callee:
1919
ret
2020

21-
.section .rodata.dummy1,"a",@progbits
22-
sym1:
23-
.long 111
24-
.long 122
25-
.byte 123
26-
27-
.section .rodata.dummy2,"a",@progbits
28-
sym2:
29-
.long 111
30-
.long 122
31-
sym3:
32-
.byte 123
33-
34-
.macro f, index
21+
.macro f, index, isglobal
3522

3623
# (Kept unique) first instruction of the GOT code sequence
3724
.section .text.f1_\index,"ax",@progbits
@@ -47,7 +34,9 @@ ldr x0, [x0, :got_lo12:g\index]
4734
b callee
4835

4936
# Folded
37+
.ifnb \isglobal
5038
.globl g\index
39+
.endif
5140
.section .rodata.g\index,"a",@progbits
5241
g_\index:
5342
.long 111
@@ -65,7 +54,7 @@ bl f1_\index
6554
.globl _start
6655
_start:
6756

68-
f 0
69-
f 1
70-
f 2
71-
f 3
57+
f 0 1
58+
f 1 1
59+
f 2 1
60+
f 3

0 commit comments

Comments
 (0)