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 adr x0, :tlsldm:global_a0 10 bl __tls_get_addr 11 nop 12 add x1, x0, #:dtprel_hi12:global_a0, lsl #12 13 add x1, x1, #:dtprel_lo12_nc:global_a0 14 adrp x0, .LC0 15 ret 16 .size main, .-main 17 .section .rodata.str1.8,"aMS",%progbits,1 18 .align 3 19.LC0: 20 .string "Hello world %d\n" 21 .section .tdata,"awT",%progbits 22 .align 2 23 .type global_a0, %object 24 .size global_a0, 4 25global_a0: 26 .word 16 27