diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-11-23 12:36:40 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-11-23 12:36:40 +0100 |
| commit | 0a84f85945a4d22c43b467c69ba7c26cd264659a (patch) | |
| tree | d532f6fc3819da46cac0cf914f833c26d210ba2b /lib/std | |
| parent | bfa7e5c7436f2dcea90de12f1c1e1993c025d0cf (diff) | |
| download | zig-0a84f85945a4d22c43b467c69ba7c26cd264659a.tar.gz zig-0a84f85945a4d22c43b467c69ba7c26cd264659a.zip | |
Minor code cleanup in start_pie.zig
Thanks @daurnimator for catching this.
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/linux/start_pie.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/os/linux/start_pie.zig b/lib/std/os/linux/start_pie.zig index 551386f312..4ea47b7891 100644 --- a/lib/std/os/linux/start_pie.zig +++ b/lib/std/os/linux/start_pie.zig @@ -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); } |
