| ... | @@ -26,7 +26,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) { | ... | @@ -26,7 +26,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) { |
| 26 | .hexagon => R_HEXAGON_RELATIVE, | 26 | .hexagon => R_HEXAGON_RELATIVE, |
| 27 | .loongarch32, .loongarch64 => R_LARCH_RELATIVE, | 27 | .loongarch32, .loongarch64 => R_LARCH_RELATIVE, |
| 28 | .m68k => R_68K_RELATIVE, | 28 | .m68k => R_68K_RELATIVE, |
| 29 | .riscv64 => R_RISCV_RELATIVE, | 29 | .riscv32, .riscv64 => R_RISCV_RELATIVE, |
| 30 | .s390x => R_390_RELATIVE, | 30 | .s390x => R_390_RELATIVE, |
| 31 | else => @compileError("Missing R_RELATIVE definition for this target"), | 31 | else => @compileError("Missing R_RELATIVE definition for this target"), |
| 32 | }; | 32 | }; |
| ... | @@ -111,7 +111,7 @@ fn getDynamicSymbol() [*]elf.Dyn { | ... | @@ -111,7 +111,7 @@ fn getDynamicSymbol() [*]elf.Dyn { |
| 111 | \\ lea (%[ret], %%pc), %[ret] | 111 | \\ lea (%[ret], %%pc), %[ret] |
| 112 | : [ret] "=r" (-> [*]elf.Dyn), | 112 | : [ret] "=r" (-> [*]elf.Dyn), |
| 113 | ), | 113 | ), |
| 114 | .riscv64 => asm volatile ( | 114 | .riscv32, .riscv64 => asm volatile ( |
| 115 | \\ .weak _DYNAMIC | 115 | \\ .weak _DYNAMIC |
| 116 | \\ .hidden _DYNAMIC | 116 | \\ .hidden _DYNAMIC |
| 117 | \\ lla %[ret], _DYNAMIC | 117 | \\ lla %[ret], _DYNAMIC |