aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-09-10 17:31:06 -0400
committerGitHub <noreply@github.com>2024-09-10 17:31:06 -0400
commit8ec68c63fa1d0f7e267ff92c054e8aa335f91da4 (patch)
treee2fbdd384dbc2509c4a3b633b41e651a6e01b157 /src/link.zig
parent90075345519f165a0164c52b62b78453068c6ce6 (diff)
parent6aa6d088d93174767d3a8387d536f4083c39e14f (diff)
downloadzig-8ec68c63fa1d0f7e267ff92c054e8aa335f91da4.tar.gz
zig-8ec68c63fa1d0f7e267ff92c054e8aa335f91da4.zip
Merge pull request #21323 from jacobly0/dwarf-decls
Dwarf: implement more decls
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig
index 508bc81352..2894302c11 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -330,6 +330,11 @@ pub const File = struct {
}
}
+ pub const DebugInfoOutput = union(enum) {
+ dwarf: *Dwarf.WipNav,
+ plan9: *Plan9.DebugInfoOutput,
+ none,
+ };
pub const UpdateDebugInfoError = Dwarf.UpdateError;
pub const FlushDebugInfoError = Dwarf.FlushError;
@@ -673,9 +678,14 @@ pub const File = struct {
}
pub const RelocInfo = struct {
- parent_atom_index: u32,
+ parent: Parent,
offset: u64,
addend: u32,
+
+ pub const Parent = union(enum) {
+ atom_index: u32,
+ debug_output: DebugInfoOutput,
+ };
};
/// Get allocated `Nav`'s address in virtual memory.