Minor code cleanup in start_pie.zig

Thanks @daurnimator for catching this.
This commit is contained in:
LemonBoy 2020-11-23 12:36:40 +01:00
parent bfa7e5c743
commit 0a84f85945

View File

@ -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);
}