Index: lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp =================================================================== --- lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp +++ lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp @@ -105,4 +105,5 @@ CommentString = ";"; PrivateGlobalPrefix = ".L"; PrivateLabelPrefix = ".L"; + AlignmentIsInBytes = false; } Index: test/MC/COFF/aarch64-align.s =================================================================== --- /dev/null +++ test/MC/COFF/aarch64-align.s @@ -0,0 +1,7 @@ +// RUN: llvm-mc -filetype=obj -triple aarch64-windows-gnu %s | llvm-readobj -s -sd | FileCheck %s + .text + .align 5 +f0: + ret + +// CHECK: IMAGE_SCN_ALIGN_32BYTES