diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-03-22 21:56:32 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-03-23 18:35:34 -0400 |
| commit | 6705cbd5eb8f242a567e24ec21cd3c9b82eb3343 (patch) | |
| tree | 821c4e5f2fe7f7b695b0b24045b904114fde0344 /src/link.zig | |
| parent | f45f9649e3fc2aa2b6a76476f2467f02ffc7d461 (diff) | |
| download | zig-6705cbd5eb8f242a567e24ec21cd3c9b82eb3343.tar.gz zig-6705cbd5eb8f242a567e24ec21cd3c9b82eb3343.zip | |
codegen: fix packed byte-aligned relocations
Closes #23131
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/link.zig b/src/link.zig index f19d63d35e..f436106aab 100644 --- a/src/link.zig +++ b/src/link.zig @@ -26,6 +26,7 @@ const Package = @import("Package.zig"); const dev = @import("dev.zig"); const ThreadSafeQueue = @import("ThreadSafeQueue.zig").ThreadSafeQueue; const target_util = @import("target.zig"); +const codegen = @import("codegen.zig"); pub const LdScript = @import("link/LdScript.zig"); @@ -683,13 +684,7 @@ pub const File = struct { /// Note that `LinkFailure` is not a member of this error set because the error message /// must be attached to `Zcu.failed_codegen` rather than `Compilation.link_diags`. - pub const UpdateNavError = error{ - Overflow, - OutOfMemory, - /// Indicates the error is already reported and stored in - /// `failed_codegen` on the Zcu. - CodegenFail, - }; + pub const UpdateNavError = codegen.CodeGenError; /// Called from within CodeGen to retrieve the symbol index of a global symbol. /// If no symbol exists yet with this name, a new undefined global symbol will @@ -920,7 +915,7 @@ pub const File = struct { decl_val: InternPool.Index, decl_align: InternPool.Alignment, src_loc: Zcu.LazySrcLoc, - ) !@import("codegen.zig").GenResult { + ) !codegen.GenResult { switch (base.tag) { .c => unreachable, .spirv => unreachable, |
