type &= ~SHT_PROGBITS;
}
else if (yasm__strcasecmp(vp->val, "align") == 0 && vp->param) {
- if (0 /* win32 */) {
- /*@dependent@*/ /*@null@*/ const yasm_intnum *align_expr;
- unsigned long addralign;
-
- align_expr = yasm_expr_get_intnum(&vp->param, NULL);
- if (!align_expr) {
- yasm__error(line,
- N_("argument to `%s' is not a power of two"),
- vp->val);
- return NULL;
- }
- addralign = yasm_intnum_get_uint(align_expr);
-
- /* Alignments must be a power of two. */
- if ((addralign & (addralign - 1)) != 0) {
- yasm__error(line,
- N_("argument to `%s' is not a power of two"),
- vp->val);
- return NULL;
- }
-
- align_intn = yasm_intnum_copy(align_expr);
- }
+ /*@dependent@*/ /*@null@*/ const yasm_intnum *align_expr;
+ unsigned long addralign;
+
+ align_expr = yasm_expr_get_intnum(&vp->param, NULL);
+ if (!align_expr) {
+ yasm__error(line,
+ N_("argument to `%s' is not a power of two"),
+ vp->val);
+ return NULL;
+ }
+ addralign = yasm_intnum_get_uint(align_expr);
+
+ /* Alignments must be a power of two. */
+ if ((addralign & (addralign - 1)) != 0) {
+ yasm__error(line,
+ N_("argument to `%s' is not a power of two"),
+ vp->val);
+ return NULL;
+ }
+
+ align_intn = yasm_intnum_copy(align_expr);
} else
yasm__warning(YASM_WARN_GENERAL, line,
N_("Unrecognized qualifier `%s'"), vp->val);
TESTS += modules/objfmts/elf/tests/elf_test.sh
EXTRA_DIST += modules/objfmts/elf/tests/elf_test.sh
+EXTRA_DIST += modules/objfmts/elf/tests/elfsectalign.asm
+EXTRA_DIST += modules/objfmts/elf/tests/elfsectalign.hex
+EXTRA_DIST += modules/objfmts/elf/tests/elfsectalign.errwarn
EXTRA_DIST += modules/objfmts/elf/tests/elftest.c
EXTRA_DIST += modules/objfmts/elf/tests/elftest.asm
EXTRA_DIST += modules/objfmts/elf/tests/elftest.hex