aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/sh64/reldl-2.s
blob: d632021db0de599ada5240fcec6ed80cba931547 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
! Relative linking with datalabel use, second file.  Much like rel-2.s

	.mode SHmedia
	.text
	.global start2
start2:
	nop
	.global file2text1
file2text1:
	nop
	movi file2text1 & 65535,r10
	.global file2text2
file2text2:
	movi file2data2 & 65535,r20
	.global file2text3
file2text3:
	movi file1text3 & 65535,r20
	.global file2text4
file2text4:
	movi file1data4 & 65535,r20
	movi unresolved1 & 65535,r30
	movi unresolved3 & 65535,r30
	movi datalabel unresolved8 & 65535,r50
	movi datalabel unresolved9 & 65535,r50
	movi datalabel file1text1 & 65535,r40
	movi datalabel file1data2 & 65535,r40
	movi datalabel file1data3 & 65535,r40
	.global c1
c1:
	nop
	.global c2
c2:
	nop
	.global c3
c3:
	nop
	.global c4
c4:
	nop
	.global c12
c12:
	nop
	.global c13
c13:
	nop
	.global c23
c23:
	nop
	.global c123
c123:
	nop

	.global ob1
ob1:
	nop
	.global ob2
ob2:
	nop
	.global ob3
ob3:
	nop
	.global ob4
ob4:
	nop
	.global ob12
ob12:
	nop
	.global ob13
ob13:
	nop
	.global ob23
ob23:
	nop
	.global ob123
ob123:
	nop

	.data
	.long 0
	.global file2data1
file2data1:
	.long 0
	.long file2data1
	.global file2data2
file2data2:
	.long file2text2
	.global file2data3
file2data3:
	.long file1data3
	.global file2data4
file2data4:
	.long file1text4
	.long unresolved2
	.long unresolved4

	.long datalabel oa1
	.long datalabel oa2
	.long datalabel oa3
	.long oa13
	.long oc13
	.long datalabel oa4
	.long datalabel oa12
	.long datalabel oa13
	.long datalabel oa23
	.long oa23
	.long oa123
	.long oc3
	.long datalabel oa123
	.long datalabel ob1
	.long datalabel ob2
	.long datalabel ob3
	.long datalabel ob4
	.long oa3
	.long oc23
	.long oc123
	.long datalabel ob12
	.long datalabel ob13
	.long ob13
	.long ob23
	.long datalabel ob23
	.long datalabel ob123
	.long datalabel oc1
	.long ob3
	.long ob123
	.long datalabel oc2
	.long datalabel oc3
	.long datalabel oc4
	.long datalabel oc12
	.long datalabel oc13
	.long datalabel oc23
	.long datalabel oc123

	.long datalabel a1
	.long c2
	.long b23
	.long datalabel b1
	.long datalabel c1
	.long datalabel a12
	.long a2
	.long b2
	.long datalabel b12
	.long datalabel c12
	.long b123
	.long c123
	.long datalabel a13
	.long datalabel b13
	.long c23
	.long a123
	.long datalabel c13
	.long datalabel a123
	.long c12
	.long a23
	.long datalabel b123
	.long a12
	.long b12
	.long datalabel c123