We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43410cd commit aeb3abcCopy full SHA for aeb3abc
lib/std/os/linux/start_pie.zig
@@ -26,7 +26,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) {
26
.hexagon => R_HEXAGON_RELATIVE,
27
.loongarch32, .loongarch64 => R_LARCH_RELATIVE,
28
.m68k => R_68K_RELATIVE,
29
- .riscv64 => R_RISCV_RELATIVE,
+ .riscv32, .riscv64 => R_RISCV_RELATIVE,
30
.s390x => R_390_RELATIVE,
31
else => @compileError("Missing R_RELATIVE definition for this target"),
32
};
@@ -111,7 +111,7 @@ fn getDynamicSymbol() [*]elf.Dyn {
111
\\ lea (%[ret], %%pc), %[ret]
112
: [ret] "=r" (-> [*]elf.Dyn),
113
),
114
- .riscv64 => asm volatile (
+ .riscv32, .riscv64 => asm volatile (
115
\\ .weak _DYNAMIC
116
\\ .hidden _DYNAMIC
117
\\ lla %[ret], _DYNAMIC
0 commit comments