start: remove riscv condition

This commit is contained in:
David Rubin 2024-07-31 11:46:01 -07:00
parent 9c7aade488
commit 2b8a71489a
No known key found for this signature in database
GPG Key ID: A4390FEB5F00C0A5

View File

@ -465,8 +465,6 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
// to ask for more stack space.
expandStackSize(phdrs);
// Disabled with the riscv backend because it cannot handle this code yet.
if (builtin.zig_backend != .stage2_riscv64) {
const opt_init_array_start = @extern([*]*const fn () callconv(.C) void, .{
.name = "__init_array_start",
.linkage = .weak,
@ -481,7 +479,6 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
for (slice) |func| func();
}
}
}
std.posix.exit(callMainWithArgs(argc, argv, envp));
}