File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -277,15 +277,16 @@ fn _start() callconv(.Naked) noreturn {
277
277
,
278
278
// zig fmt: off
279
279
.csky = >
280
- if (builtin .position_independent_code )
280
+ ( if (builtin .position_independent_code )
281
281
// The CSKY ABI assumes that `gb` is set to the address of the GOT in order for
282
282
// position-independent code to work. We depend on this in `std.os.linux.start_pie`
283
283
// to locate `_DYNAMIC` as well.
284
284
\\ grs t0, 1f
285
285
\\ 1:
286
286
\\ lrw gb, 1b@GOTPC
287
287
\\ addu gb, t0
288
- else ""
288
+ \\
289
+ else "" )
289
290
++
290
291
\\ movi lr, 0
291
292
\\ mov a0, sp
@@ -311,7 +312,7 @@ fn _start() callconv(.Naked) noreturn {
311
312
// zig fmt: off
312
313
.riscv32 , .riscv64 = >
313
314
// The self-hosted riscv64 backend is not able to assemble this yet.
314
- if (builtin .zig_backend != .stage2_riscv64 )
315
+ ( if (builtin .zig_backend != .stage2_riscv64 )
315
316
// The RISC-V ELF ABI assumes that `gp` is set to the value of `__global_pointer$` at
316
317
// startup in order for GP relaxation to work, even in static builds.
317
318
\\ .weak __global_pointer$
@@ -320,7 +321,8 @@ fn _start() callconv(.Naked) noreturn {
320
321
\\ .option norelax
321
322
\\ lla gp, __global_pointer$
322
323
\\ .option pop
323
- else ""
324
+ \\
325
+ else "" )
324
326
++
325
327
\\ li s0, 0
326
328
\\ li ra, 0
You can’t perform that action at this time.
0 commit comments