aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/reloc-merge-lo16.s
blob: 33158b12b7f8552a888e2f40255d5f6a885abfd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	.section .rodata.str1.4,"aMS", @progbits, 1
	.macro	fillstr char
	.rept	0x3fff - \char
	.byte	\char
	.endr
	.byte	0
	.endm
	fillstr	'a'
	fillstr	'h'
	fillstr	'c'
	fillstr	'd'
	fillstr	'g'
	fillstr	'f'
g:
	fillstr	'g'
	fillstr	'h'

	.text
	.globl	__start
	.ent	__start
	.type	__start, @function
__start:
	lui	$2, %hi(g)
	addiu	$3, $2, %lo(g)
	addiu	$2, $2, %lo(g)
	.end	__start

	.space	16