authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-04 01:39:03-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-04 12:15:47-07:00
logca19c42b74e94b24f82fca95c5411557b29e1809
tree2b8b990554a2f17ec4e2a6913c7b3b20204e69ee
parent7d70774fde694b343c90ce8830c269bda23afe84

stage2: fix updating debug line info not resizing properly


1 files changed, 1 insertions(+), 0 deletions(-)

src-self-hosted/link.zig+1
......@@ -1960,6 +1960,7 @@ pub const File = struct {
19601960 prev.next = src_fn.next;
19611961 }
19621962 next.prev = src_fn.prev;
1963 src_fn.next = null;
19631964 // Populate where it used to be with NOPs.
19641965 const file_pos = debug_line_sect.sh_offset + src_fn.off;
19651966 try self.pwriteWithNops(0, &[0]u8{}, src_fn.len, file_pos);