diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2019-05-03 00:09:40 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2019-05-03 00:09:40 +0200 |
commit | c8ffe7262f28022854a504cb8260e0cfdd8c55ed (patch) | |
tree | 01d9b1c6d2ae907a16790266d06e973b88d460a8 /gas.c | |
parent | 84b889c6ef536de35ac0360d28c057c8548a42c1 (diff) | |
download | roux-c8ffe7262f28022854a504cb8260e0cfdd8c55ed.tar.gz |
gas: use .balign instead of .align
.align N can either mean align to the next multiple of N or align to the next multiple of 1<<N. Credit goes to Jorge Acereda MaciĆ” for reporting this issue.
Diffstat (limited to 'gas.c')
-rw-r--r-- | gas.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas.c b/gas.c index 1b6a053..8e2f04c 100644 --- a/gas.c +++ b/gas.c @@ -8,7 +8,7 @@ gasemitdat(Dat *d, FILE *f) { static int align; static char *dtoa[] = { - [DAlign] = ".align", + [DAlign] = ".balign", [DB] = "\t.byte", [DH] = "\t.short", [DW] = "\t.int", @@ -24,7 +24,7 @@ gasemitdat(Dat *d, FILE *f) break; case DName: if (!align) - fprintf(f, ".align 8\n"); + fprintf(f, ".balign 8\n"); if (d->export) fprintf(f, ".globl %s%s\n", gassym, d->u.str); fprintf(f, "%s%s:\n", gassym, d->u.str); @@ -98,7 +98,7 @@ gasemitfin(FILE *f) for (b=stash, i=0; b; b=b->link, i++) { if (b->size == sz) { fprintf(f, - ".align %d\n" + ".balign %d\n" "%sfp%d:", sz, gasloc, i ); |