| ... | ... | @@ -2584,7 +2584,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { |
| 2584 | 2584 | }, |
| 2585 | 2585 | .register => return self.fail(src, "TODO implement genSetReg for aarch64 {}", .{mcv}), |
| 2586 | 2586 | .memory => |addr| { |
| 2587 | | if (self.bin_file.cast(link.File.MachO)) |macho_file| { |
| 2587 | if (self.bin_file.options.pie) { |
| 2588 | 2588 | // For MachO, the binary, with the exception of object files, has to be a PIE. |
| 2589 | 2589 | // Therefore we cannot load an absolute address. |
| 2590 | 2590 | // Instead, we need to make use of PC-relative addressing. |