1 ! Test that all common kinds of relocs get right for simple cases. 2 ! Main part. 3 .text 4 .global start 5 .mode SHmedia 6 start: 7 movi foo,r33 8 movi bar,r21 9 pt/l bar,tr3 10 movi foobar,r43 11 movi baz2,r53 12 movi foobar2,r4 13 pta xyzzy,tr5 14 pt/u plugh,tr1 15 16 .data 17 .global foobar 18 foobar: .long baz 19 foobar2: 20 .long bar 21 22 .section .text.other,"ax" 23 .global xyzzy 24 xyzzy: 25 nop 26 plugh: 27 nop 28