HomeFreeBSD

x86 asm: Replace .align with .balign

Description

x86 asm: Replace .align with .balign

The .align directive used to align storage locations is
ambiguous. On some platforms and assemblers it takes a byte count,
on others the argument is interpreted as a shift value. The current
usage expects the first interpretation.

Replace it with the unambiguous .balign directive which always
expects a byte count, regardless of platform and assembler.

Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Attila Fülöp <attila@fueloep.org>
Closes #14422

Details

Provenance
Attila Fülöp <attila@fueloep.org>Authored on Jan 23 2023, 7:25 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 24 2023, 5:04 PM
Parents
rG58ca7b10119b: IPC: blake3 x86 asm: fix placement of .size directives
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG037e4f25367a: x86 asm: Replace .align with .balign (authored by Attila Fülöp <attila@fueloep.org>).Jan 24 2023, 5:04 PM