aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu/PerThread.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-03-22 21:56:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2025-03-23 18:35:34 -0400
commit6705cbd5eb8f242a567e24ec21cd3c9b82eb3343 (patch)
tree821c4e5f2fe7f7b695b0b24045b904114fde0344 /src/Zcu/PerThread.zig
parentf45f9649e3fc2aa2b6a76476f2467f02ffc7d461 (diff)
downloadzig-6705cbd5eb8f242a567e24ec21cd3c9b82eb3343.tar.gz
zig-6705cbd5eb8f242a567e24ec21cd3c9b82eb3343.zip
codegen: fix packed byte-aligned relocations
Closes #23131
Diffstat (limited to 'src/Zcu/PerThread.zig')
-rw-r--r--src/Zcu/PerThread.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig
index 5823fb0f18..c537a6c921 100644
--- a/src/Zcu/PerThread.zig
+++ b/src/Zcu/PerThread.zig
@@ -1705,7 +1705,7 @@ pub fn linkerUpdateFunc(pt: Zcu.PerThread, func_index: InternPool.Index, air: Ai
lf.updateFunc(pt, func_index, air, liveness) catch |err| switch (err) {
error.OutOfMemory => return error.OutOfMemory,
error.CodegenFail => assert(zcu.failed_codegen.contains(nav_index)),
- error.Overflow => {
+ error.Overflow, error.RelocationNotByteAligned => {
try zcu.failed_codegen.putNoClobber(gpa, nav_index, try Zcu.ErrorMsg.create(
gpa,
zcu.navSrcLoc(nav_index),
@@ -3131,7 +3131,7 @@ pub fn linkerUpdateNav(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) error
lf.updateNav(pt, nav_index) catch |err| switch (err) {
error.OutOfMemory => return error.OutOfMemory,
error.CodegenFail => assert(zcu.failed_codegen.contains(nav_index)),
- error.Overflow => {
+ error.Overflow, error.RelocationNotByteAligned => {
try zcu.failed_codegen.putNoClobber(gpa, nav_index, try Zcu.ErrorMsg.create(
gpa,
zcu.navSrcLoc(nav_index),