| ... | @@ -1960,6 +1960,7 @@ pub const File = struct { | ... | @@ -1960,6 +1960,7 @@ pub const File = struct { |
| 1960 | prev.next = src_fn.next; | 1960 | prev.next = src_fn.next; |
| 1961 | } | 1961 | } |
| 1962 | next.prev = src_fn.prev; | 1962 | next.prev = src_fn.prev; |
| | 1963 | src_fn.next = null; |
| 1963 | // Populate where it used to be with NOPs. | 1964 | // Populate where it used to be with NOPs. |
| 1964 | const file_pos = debug_line_sect.sh_offset + src_fn.off; | 1965 | const file_pos = debug_line_sect.sh_offset + src_fn.off; |
| 1965 | try self.pwriteWithNops(0, &[0]u8{}, src_fn.len, file_pos); | 1966 | try self.pwriteWithNops(0, &[0]u8{}, src_fn.len, file_pos); |