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/AArch64/coff-align.s =================================================================== --- /dev/null +++ test/MC/AArch64/coff-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