Skip to content

Commit 3f2d1b1

Browse files
committed
disable the new code for self-hosted riscv backend
1 parent 728024f commit 3f2d1b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/std/start.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
436436
// to ask for more stack space.
437437
expandStackSize(phdrs);
438438

439-
{
439+
// Disabled with the riscv backend because it cannot handle this code yet.
440+
if (builtin.zig_backend != .stage2_riscv64) {
440441
const opt_init_array_start = @extern([*]*const fn () callconv(.C) void, .{
441442
.name = "__init_array_start",
442443
.linkage = .weak,

0 commit comments

Comments
 (0)