Displaying 1 result from an estimated 1 matches for "got_pc".
2014 Mar 12
3
[LLVMdev] [ARM] [PIC] optimizing the loading of hidden global variable
...V and 2 instructions to get the
address:
ldr r0, .LCPI0_2
add r0, r0, r4
bl _Z4initPv(PLT)
GCC does this only for the first GV. The rest GV address are computed
directly:
ldr r4, .L2
.LPIC0:
add r4, pc, r4 è get &g0 via GOT_PC Relative
mov r0, r4
bl _Z4initPv(PLT)
add r0, r4, #400 è get &g1
bl _Z4initPv(PLT)
add r0, r4, #800 è get &g2
ldmfd sp!, {r4, lr}
b _Z4initPv(PLT)
.L3:
.align 2
.L2:
.word...