summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-cris/pcrelcp-1.s
blob: d1bcbee37f7d872ddc1c09b86c2ca504cb03cfd0 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
	.symver x,expfn@TST2	; .symver required to make @ part of name.
	.global _start
	.type	_start,@function
_start:
	.dword	0,0,0,0
	.reloc	0,R_CRIS_32_PCREL,expfn
	.reloc	4,R_CRIS_32_PCREL,expfn
	.reloc	8,R_CRIS_32_PCREL,x
	.reloc	12,R_CRIS_32_PCREL,x
.Lfe3:
	.size	_start,.Lfe3-_start

	.data
	.global tab1
	.type	tab1,@object
tab1:
	.dword	0,0,0,0,0,0,0,0
	.reloc	0,R_CRIS_32_PCREL,expfn
	.reloc	4,R_CRIS_32_PCREL,expfn
	.reloc	8,R_CRIS_32_PCREL,expfn
	.reloc	12,R_CRIS_32_PCREL,expfn
	.reloc	16,R_CRIS_32_PCREL,x
	.reloc	20,R_CRIS_32_PCREL,x
	.reloc	24,R_CRIS_32_PCREL,x
	.reloc	28,R_CRIS_32_PCREL,x
	.size	tab1,.-tab1

	.section .data2,"aw",@progbits
	.global tab2
	.type	tab2,@object
tab2:
	.dword	0,0,0,0,0,0,0,0
	.dword	0,0,0,0,0,0,0,0
	.reloc	0,R_CRIS_32_PCREL,expfn
	.reloc	4,R_CRIS_32_PCREL,expfn
	.reloc	8,R_CRIS_32_PCREL,expfn
	.reloc	12,R_CRIS_32_PCREL,expfn
	.reloc	16,R_CRIS_32_PCREL,expfn
	.reloc	20,R_CRIS_32_PCREL,expfn
	.reloc	24,R_CRIS_32_PCREL,expfn
	.reloc	28,R_CRIS_32_PCREL,expfn
	.reloc	32,R_CRIS_32_PCREL,x
	.reloc	36,R_CRIS_32_PCREL,x
	.reloc	40,R_CRIS_32_PCREL,x
	.reloc	44,R_CRIS_32_PCREL,x
	.reloc	48,R_CRIS_32_PCREL,x
	.reloc	52,R_CRIS_32_PCREL,x
	.reloc	56,R_CRIS_32_PCREL,x
	.reloc	60,R_CRIS_32_PCREL,x
	.size	tab1,.-tab2