diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2024-02-17 11:43:18 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2024-02-17 11:46:01 +0100 |
| commit | 9542ee9bf87424f89b7ca182944fe825193a5702 (patch) | |
| tree | bdad4881b0874730e18b9fb7e46d738f4055eb86 /src/arch | |
| parent | ace1a69a55dd77a8189b7408b126d9d1ca0066ee (diff) | |
| download | zig-9542ee9bf87424f89b7ca182944fe825193a5702.tar.gz zig-9542ee9bf87424f89b7ca182944fe825193a5702.zip | |
elf: create Zig specific reloc type shared across ISAs
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/x86_64/Emit.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86_64/Emit.zig b/src/arch/x86_64/Emit.zig index de510fb30c..e341372f11 100644 --- a/src/arch/x86_64/Emit.zig +++ b/src/arch/x86_64/Emit.zig @@ -120,7 +120,7 @@ pub fn emitMir(emit: *Emit) Error!void { } if (emit.lower.pic) { const r_type: u32 = if (sym.flags.needs_zig_got and !is_obj_or_static_lib) - link.File.Elf.R_X86_64_ZIG_GOTPCREL + link.File.Elf.R_ZIG_GOTPCREL else if (sym.flags.needs_got) @intFromEnum(std.elf.R_X86_64.R_X86_64_GOTPCREL) else @@ -140,7 +140,7 @@ pub fn emitMir(emit: *Emit) Error!void { }); } else { const r_type: u32 = if (sym.flags.needs_zig_got and !is_obj_or_static_lib) - link.File.Elf.R_X86_64_ZIG_GOT32 + link.File.Elf.R_ZIG_GOT32 else if (sym.flags.needs_got) @intFromEnum(std.elf.R_X86_64.R_X86_64_GOT32) else if (sym.flags.is_tls) |
