| ... | @@ -239,6 +239,12 @@ pub fn parse(self: *Object, allocator: Allocator, cpu_arch: std.Target.Cpu.Arch) | ... | @@ -239,6 +239,12 @@ pub fn parse(self: *Object, allocator: Allocator, cpu_arch: std.Target.Cpu.Arch) |
| 239 | self.strtab_lookup[i] = @intCast(u32, sym_name_len); | 239 | self.strtab_lookup[i] = @intCast(u32, sym_name_len); |
| 240 | } | 240 | } |
| 241 | | 241 | |
| | 242 | // If there were no undefined symbols, make sure we populate the |
| | 243 | // source section index lookup for the last scanned section. |
| | 244 | if (section_index_lookup) |lookup| { |
| | 245 | self.source_section_index_lookup[prev_sect_id - 1] = lookup; |
| | 246 | } |
| | 247 | |
| 242 | // Parse __TEXT,__eh_frame header if one exists | 248 | // Parse __TEXT,__eh_frame header if one exists |
| 243 | self.eh_frame_sect_id = self.getSourceSectionIndexByName("__TEXT", "__eh_frame"); | 249 | self.eh_frame_sect_id = self.getSourceSectionIndexByName("__TEXT", "__eh_frame"); |
| 244 | | 250 | |