1 ! Relative linking. Like the simple test
, but mixing in use of
2 ! "datalabel" and offsets to the global symbols into the previous
5 ! More systematic testing datalabel references
,
6 ! igoring section difference
, symbol definition type
and offset presence
:
7 ! Datalabel reference plus
:
8 ! (datalabel other file
, other file
, same file
, none
)
9 ! = (1, 2, 3, 4, 12, 13, 23, 123)
12 ! (none
, same file
, other file
) = (a, b, c
)
15 ! = (a1
, a2
, a3
, a4
, a12
, a13
, a23
, a123
, b1
, b2
, b3
, b4
, b12
,
16 ! b13
, b23
, b123
, c1
, c2
, c3
, c4
, c12
, c13
, c23
, c123
)
26 movi file1text1
& 65535,r10
29 movi
(datalabel file1data2
) & 65535,r20
32 movi file2text3
& 65535,r20
35 movi file2data4
& 65535,r20
38 movi unresolved1
& 65535,r40
41 movi unresolved6
& 65535,r30
44 movi
(datalabel file1text1
) & 65535,r10
47 movi
(datalabel file1text1
+ 24) & 65535,r10
50 movi
(datalabel file1text5
+ 8) & 65535, r40
53 movi
(datalabel file1data2
+ 48) & 65535,r20
56 movi file1data2
& 65535,r20
59 movi
(datalabel file2data4
+ 16),r50
62 movi
(datalabel unresolved7
) & 65535,r60
65 movi
(datalabel unresolved1
) & 65535,r60
93 .long datalabel file1data1 + 8
107 .long datalabel unresolved6 + 40
169 .long datalabel oa123
170 .long datalabel ob123
171 .long datalabel oc123