aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/retain3.s
blob: 9e388330ab071e45b26d4f6d0cf2178367508922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* The retention of bar should also prevent foo from being gc'ed, since bar
   references foo.  */
	.section	.text.foo,"ax"
	.global	foo
	.type	foo, %function
foo:
	.word 0

	.section	.data.bar,"awR"
	.global	bar
	.type	bar, %object
bar:
	.long foo

	.section	.text._start,"ax"
	.global	_start
	.type	_start, %function
_start:
	.word 0