aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-09-09 13:08:58 +0200
committerGitHub <noreply@github.com>2022-09-09 13:08:58 +0200
commit56b96cd61b0bdb7f5b11a5283fe6dd5b585ef10e (patch)
treea19765f949fd7ce1d1d6fdbcf684a812d30e634a /src/link.zig
parenta833bdcd7e6fcfee6e9cc33a3f7de78b16a36941 (diff)
parent5006fb6846ccaa7edb1547588cf1aa08c8decf2b (diff)
downloadzig-56b96cd61b0bdb7f5b11a5283fe6dd5b585ef10e.tar.gz
zig-56b96cd61b0bdb7f5b11a5283fe6dd5b585ef10e.zip
Merge pull request #12772 from ziglang/coff-basic-imports
coff: implement enough of the incremental linker to pass behavior and incremental tests on Windows
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig
index 7439f8d59e..5d20e98a32 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -476,7 +476,7 @@ pub const File = struct {
log.debug("getGlobalSymbol '{s}'", .{name});
switch (base.tag) {
// zig fmt: off
- .coff => unreachable,
+ .coff => return @fieldParentPtr(Coff, "base", base).getGlobalSymbol(name),
.elf => unreachable,
.macho => return @fieldParentPtr(MachO, "base", base).getGlobalSymbol(name),
.plan9 => unreachable,