1 .text 2 foo: 3 # TOC references may have offsets. 4 addis 3, 2, 5+foo@toc@ha 5 addi 3, 3, 10+foo@toc@l 6 7 addis 3, 2, 15+foo@toc@ha 8 addi 3, 3, 20+foo@toc@l 9 10 addis 4, 2, foo@toc@ha 11 addi 4, 4, foo@toc@l 12 13 addis 5, 2, 5+foo@toc@ha 14 ld 5, 10+foo@toc@l(5) 15 16 addis 4, 2, foo-10@toc@ha 17 addi 4, 4, foo-10@toc@l 18 19 addis 4, 2, foo@toc@ha+25 20 addi 4, 4, foo@toc@l+25 21 22 addis 4, 2, 1+foo-2@toc@ha+3 23 addi 4, 4, 1+foo-2@toc@l+3 24