stage2 ARM & AArch64: ensure correct function alignment

This commit is contained in:
joachimschmidt557
2020-11-12 16:22:25 +01:00
parent b17859b568
commit c6d46a9b82

View File

@@ -818,7 +818,8 @@ pub const Type = extern union {
.fn_ccc_void_no_args, // represents machine code; not a pointer
.function, // represents machine code; not a pointer
=> return switch (target.cpu.arch) {
.arm => 4,
.arm, .armeb => 4,
.aarch64, .aarch64_32, .aarch64_be => 4,
.riscv64 => 2,
else => 1,
},