| ... | @@ -3150,7 +3150,7 @@ fn addLinkerDefinedSymbols(self: *Elf) !void { | ... | @@ -3150,7 +3150,7 @@ fn addLinkerDefinedSymbols(self: *Elf) !void { |
| 3150 | } | 3150 | } |
| 3151 | } | 3151 | } |
| 3152 | | 3152 | |
| 3153 | if (self.getTarget().cpu.arch == .riscv64 and self.isEffectivelyDynLib()) { | 3153 | if (self.getTarget().cpu.arch.isRISCV() and self.isEffectivelyDynLib()) { |
| 3154 | self.global_pointer_index = try linker_defined.addGlobal("__global_pointer$", self); | 3154 | self.global_pointer_index = try linker_defined.addGlobal("__global_pointer$", self); |
| 3155 | } | 3155 | } |
| 3156 | | 3156 | |