1 .text 2 .global getA 3 .type getA,@function 4getA: 5.LgepA: 6 addis 2, 12, .TOC.-.LgepA@ha 7 addi 2, 2, .TOC.-.LgepA@l 8.LlepA: 9 .localentry getA, .LlepA-.LgepA 10 ld 3, .LC0@toc(2) 11 lwa 3, 0(3) 12 blr 13 14 .global getB 15 .type getB,@function 16getB: 17.LgepB: 18 addis 2, 12, .TOC.-.LgepB@ha 19 addi 2, 2, .TOC.-.LgepB@l 20.LlepB: 21 .localentry getB, .LlepB-.LgepB 22 ld 3, .LC1@toc(2) 23 lwa 3, 0(3) 24 blr 25 26 .section .toc,"aw",@progbits 27.LC0: 28 .tc a[TC],a 29.LConst1: 30 .quad 0xa 31.LC1: 32 .tc b[TC],b 33.Lconst2: 34 .quad 0xaabbccddeeff 35 36 .type b,@object 37 .data 38 .global b 39b: 40 .long 22 41 .size b, 4 42