mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 17:15:37 +00:00
Minor code cleanup in start_pie.zig
Thanks @daurnimator for catching this.
This commit is contained in:
parent
bfa7e5c743
commit
0a84f85945
@ -56,12 +56,13 @@ fn getDynamicSymbol() [*]elf.Dyn {
|
||||
: [ret] "=r" (-> usize)
|
||||
),
|
||||
.riscv64 => asm volatile (
|
||||
\\ .weak _DYNAMIC
|
||||
\\ .hidden _DYNAMIC
|
||||
\\ lla %[ret], _DYNAMIC
|
||||
: [ret] "=r" (-> usize)
|
||||
),
|
||||
else => @compileError("???"),
|
||||
};
|
||||
if (addr == 0) unreachable;
|
||||
return @intToPtr([*]elf.Dyn, addr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user