From d272b5dce895df0912230a4ced528d71afcba7c2 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 15 Aug 2023 09:36:45 -0400 Subject: [PATCH] Write common symbol align in asm --- src/util/asm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/asm.rs b/src/util/asm.rs index cf67112..a071152 100644 --- a/src/util/asm.rs +++ b/src/util/asm.rs @@ -172,7 +172,7 @@ pub fn write_asm(w: &mut W, obj: &ObjInfo) -> Result<()> { } write!(w, ".comm ")?; write_symbol_name(w, &symbol.name)?; - writeln!(w, ", {:#X}, 4", symbol.size)?; + writeln!(w, ", {:#X}, {}", symbol.size, symbol.align.unwrap_or(4))?; } }