1 .cpu generic+fp+simd 2 .section .text.startup,"ax",%progbits 3 .align 2 4 .p2align 3,,7 5 .global main 6 .type main, %function 7main: 8 add x29, sp, 0 9 adrp x0, :tlsldm:global_a0 10 add x0, x0, #:tlsldm_lo12_nc:global_a0 11 bl __tls_get_addr 12 nop 13 add x1, x0, #:dtprel_hi12:global_a0, lsl #12 14 add x1, x1, #:dtprel_lo12_nc:global_a0 15 adrp x0, .LC0 16 ret 17 .size main, .-main 18 .section .rodata.str1.8,"aMS",%progbits,1 19 .align 3 20.LC0: 21 .string "Hello world %d\n" 22 .section .tdata,"awT",%progbits 23 .align 2 24 .type global_a0, %object 25 .size global_a0, 4 26global_a0: 27 .word 16 28