Commit 0d09c6aed8

joachimschmidt557 <joachim.schmidt557@outlook.com>
2021-07-31 12:52:35
stage2 ARM: fix stack alignment
Acording to the AAPCS32, the stack alignment at public interfaces should be 8, not 4.
1 parent 0ce56f9
Changed files (1)
src/codegen.zig
@@ -4916,7 +4916,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type {
                             }
 
                             result.stack_byte_count = nsaa;
-                            result.stack_align = 4;
+                            result.stack_align = 8;
                         },
                         else => return self.fail("TODO implement function parameters for {} on arm", .{cc}),
                     }