authorgravatar for joachim.schmidt557@outlook.comJoachim Schmidt <joachim.schmidt557@outlook.com> 2020-11-12 16:22:25+01:00
committergravatar for joachim.schmidt557@outlook.comJoachim Schmidt <joachim.schmidt557@outlook.com> 2020-11-12 16:24:51+01:00
logc6d46a9b82f04aea439320f0ae8e8a4ed187040e
treef93889134732ac967a30ffc41d6226c68454a30f
parentb17859b56863d18ecadb3cf733799a4381e666ac
signaturelock-open Commit is signed but in an unrecognized format.

stage2 ARM & AArch64: ensure correct function alignment


1 files changed, 2 insertions(+), 1 deletions(-)

src/type.zig+2-1
...@@ -818,7 +818,8 @@ pub const Type = extern union {...@@ -818,7 +818,8 @@ pub const Type = extern union {
818 .fn_ccc_void_no_args, // represents machine code; not a pointer818 .fn_ccc_void_no_args, // represents machine code; not a pointer
819 .function, // represents machine code; not a pointer819 .function, // represents machine code; not a pointer
820 => return switch (target.cpu.arch) {820 => return switch (target.cpu.arch) {
821 .arm => 4,821 .arm, .armeb => 4,
822 .aarch64, .aarch64_32, .aarch64_be => 4,
822 .riscv64 => 2,823 .riscv64 => 2,
823 else => 1,824 else => 1,
824 },825 },