mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
Update src/codegen.zig
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
parent
ebb2f20815
commit
02baaac506
@ -2584,7 +2584,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type {
|
||||
},
|
||||
.register => return self.fail(src, "TODO implement genSetReg for aarch64 {}", .{mcv}),
|
||||
.memory => |addr| {
|
||||
if (self.bin_file.cast(link.File.MachO)) |macho_file| {
|
||||
if (self.bin_file.options.pie) {
|
||||
// For MachO, the binary, with the exception of object files, has to be a PIE.
|
||||
// Therefore we cannot load an absolute address.
|
||||
// Instead, we need to make use of PC-relative addressing.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user