summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mt/relocs2.s
blob: 7435406595cf9c0113fd7cdd1fd5b032d4f4fcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	.text
	;; Put code near the top of the address space
text:
	.global i2
i2:	
	
	add R5, R6, R7

	.data
	;; Note that the .org that follows is more or less equivalent
	;; to a .space, since the amount specified will be treated like
	;; padding to be added between the .data section in relocs1.s
	;; and this one.
	;; Note also that the two test variables (d2 & d3) are intentionally
	;; roughly $100 apart, so that the FR9 relocation processing in
	;; bfd/elf32-ip2k.c (ip2k_final_link_relocate) is tested a little more.
	.org $e0
	.global d2
d2:	.byte 2
	.space $100
	.global d3
d3:	.byte 3