1 2 .arm 3 4 foo: 5 bl ifunc1(PLT) 6 ldr r0,1f 7 2: bl loc1(tlscall) 8 nop 9 1: .word loc1(tlsdesc) + (. - 2b) 10 11 ldr r0,1f 12 2: bl loc2(tlscall) 13 nop 14 1: .word loc2(tlsdesc) + (. - 2b) 15 16 .type ifunc1,%gnu_indirect_function 17 .global ifunc1 18 ifunc1: 19 mov pc,lr 20 .size ifunc1,.-ifunc1 21 22 23 .section .tdata,"awT",%progbits 24 .space 8 25 .type loc1, %object 26 loc1: .space 4 27 .type loc2, %object 28 loc2: .space 4 29 30