From 47b136e3b353932d754c359ae63a1206842d0d70 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 14 Apr 2022 21:55:56 +0700 Subject: [PATCH] stage2: Add SPARC function alignment This is based on @kubkon's suggestion. --- src/target.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target.zig b/src/target.zig index 2eff4f8445..aafd65e327 100644 --- a/src/target.zig +++ b/src/target.zig @@ -669,6 +669,7 @@ pub fn defaultFunctionAlignment(target: std.Target) u32 { return switch (target.cpu.arch) { .arm, .armeb => 4, .aarch64, .aarch64_32, .aarch64_be => 4, + .sparc, .sparcel, .sparcv9 => 4, .riscv64 => 2, else => 1, };