1 .data 2 .protected var 3 .global var 4 .align 2 5 .type var, %object 6 .size var, 4 7var: 8 .word 1 9 10 .text 11 .align 2 12 .global getaddr 13 .type getaddr, %function 14getaddr: 15 adrp x0, :got:var 16 ldr x0, [x0, #:got_lo12:var] 17 ret 18 .size getaddr, .-getaddr 19