1 .cpu generic 2 .global ff 3 .section .tbss,"awT",%nobits 4 .align 3 5 .type ff, %object 6 .size ff, 67108864 7ff: 8 .zero 67108864 9 .global i 10 .align 2 11 .type i, %object 12 .size i, 4 13i: 14 .zero 4 15 .text 16 .align 2 17 .global main 18 .type main, %function 19main: 20 sub sp, sp, #16 21 str wzr, [sp,12] 22 b .L2 23.L3: 24 mrs x0, tpidr_el0 25 add x1, x0, #:tprel_hi12:ff 26 add x1, x1, #:tprel_lo12_nc:ff 27 ldrsw x0, [sp,12] 28 mov w2, 7 29 strb w2, [x1,x0] 30 ldr w0, [sp,12] 31 add w0, w0, 1 32 str w0, [sp,12] 33.L2: 34 ldr w0, [sp,12] 35 cmp w0, 999 36 ble .L3 37 mrs x0, tpidr_el0 38 add x0, x0, #:tprel_hi12:i 39 add x0, x0, #:tprel_lo12_nc:i 40 ldr w0, [x0] 41 add sp, sp, 16 42 ret 43 .size main, .-main 44