aboutsummaryrefslogtreecommitdiff
path: root/src/link/Dwarf.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-10-31 13:27:47 +0100
committerJakub Konka <kubkon@jakubkonka.com>2023-11-04 09:08:16 +0100
commit25c53f08a6add493043a407ce15bc727dc33356d (patch)
tree13adbdc0251f44db469f374b82214a5f135eebce /src/link/Dwarf.zig
parentf6de3ec963e3a7d96cd4f6c72b0f076f0437c45d (diff)
downloadzig-25c53f08a6add493043a407ce15bc727dc33356d.tar.gz
zig-25c53f08a6add493043a407ce15bc727dc33356d.zip
elf: redo strings management in the linker
* atom names - are stored locally and pulled from defining object's strtab * local symbols - same * global symbols - in principle, we could store them locally, but for better debugging experience - when things go wrong - we store the offsets in a global strtab used by the symbol resolver
Diffstat (limited to 'src/link/Dwarf.zig')
-rw-r--r--src/link/Dwarf.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/Dwarf.zig b/src/link/Dwarf.zig
index 82cd6153de..3bfe744443 100644
--- a/src/link/Dwarf.zig
+++ b/src/link/Dwarf.zig
@@ -23,7 +23,7 @@ abbrev_table_offset: ?u64 = null,
/// TODO replace with InternPool
/// Table of debug symbol names.
-strtab: StringTable(.strtab) = .{},
+strtab: StringTable = .{},
/// Quick lookup array of all defined source files referenced by at least one Decl.
/// They will end up in the DWARF debug_line header as two lists:
@@ -2760,6 +2760,6 @@ const LinkFn = File.LinkFn;
const LinkerLoad = @import("../codegen.zig").LinkerLoad;
const Module = @import("../Module.zig");
const InternPool = @import("../InternPool.zig");
-const StringTable = @import("strtab.zig").StringTable;
+const StringTable = @import("StringTable.zig");
const Type = @import("../type.zig").Type;
const Value = @import("../value.zig").Value;