.file "test.c" .globl a1 .data .align 4 .type a1, @object .size a1, 4 a1: .long 111 .globl a2 .align 4 .type a2, @object .size a2, 8 a2: .long 1 .long 2 .text .globl main .type main, @function main: ... ...
From the context, I think it should be:
.data .globl a1
Why does GCC put .data behind .globl ?