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