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
signature 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 {
25842584 },
25852585 .register => return self.fail(src, "TODO implement genSetReg for aarch64 {}", .{mcv}),
25862586 .memory => |addr| {
2587 if (self.bin_file.cast(link.File.MachO)) |macho_file| {
2587 if (self.bin_file.options.pie) {
25882588 // For MachO, the binary, with the exception of object files, has to be a PIE.
25892589 // Therefore we cannot load an absolute address.
25902590 // Instead, we need to make use of PC-relative addressing.