aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-11-04 18:59:04 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-11-05 10:15:01 +0100
commit59fa0499c977b27450bc844ef30d7a8e83aeb20a (patch)
treea2696896243bd7a9314bff3f5fc98d1f44379ce3
parent9618fdc8a2409e56999e16dec59034cf511872e4 (diff)
downloadzig-59fa0499c977b27450bc844ef30d7a8e83aeb20a.tar.gz
zig-59fa0499c977b27450bc844ef30d7a8e83aeb20a.zip
coff: tentatively handle Obj in getImageBase() func
-rw-r--r--src/link/Coff.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig
index 35769e7feb..d035a61728 100644
--- a/src/link/Coff.zig
+++ b/src/link/Coff.zig
@@ -2186,7 +2186,7 @@ pub fn getImageBase(self: Coff) u64 {
else => unreachable, // unsupported target architecture
},
.Lib => 0x10000000,
- else => unreachable,
+ .Obj => 0,
};
return image_base;
}