authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-11-27 20:31:26+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-11-27 20:31:26+01:00
log02baaac506d0d64d1c946219335b7492222c4b64
tree520378f4e3ef336e696abae433644e5cb2e9f7ca
parentebb2f208159c46fed3aadfcefd2a5524bc46011b
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Update src/codegen.zig

Co-authored-by: Andrew Kelley <andrew@ziglang.org>

1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.zig+1-1
...@@ -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.