Align global variables

This commit is contained in:
Rui Ueyama 2020-08-19 17:16:58 +09:00
parent 7a1f816783
commit 157356c769
1 changed files with 1 additions and 0 deletions

View File

@ -466,6 +466,7 @@ static void emit_data(Obj *prog) {
continue; continue;
println(" .globl %s", var->name); println(" .globl %s", var->name);
println(" .align %d", var->ty->align);
if (var->init_data) { if (var->init_data) {
println(" .data"); println(" .data");