| ... | ... | @@ -540,12 +540,15 @@ pub fn parseIntoAtoms( |
| 540 | 540 | // Symbols within this section only. |
| 541 | 541 | const filtered_nlists = NlistWithIndex.filterInSection(sorted_nlists, sect); |
| 542 | 542 | |
| 543 | // TODO rewrite and re-enable dead-code stripping optimisation. I think it might make sense |
| 544 | // to do this in a standalone pass after we parse the sections as atoms. |
| 543 | 545 | // In release mode, if the object file was generated with dead code stripping optimisations, |
| 544 | 546 | // note it now and parse sections as atoms. |
| 545 | | const is_splittable = blk: { |
| 546 | | if (macho_file.base.options.optimize_mode == .Debug) break :blk false; |
| 547 | | break :blk self.header.?.flags & macho.MH_SUBSECTIONS_VIA_SYMBOLS != 0; |
| 548 | | }; |
| 547 | // const is_splittable = blk: { |
| 548 | // if (macho_file.base.options.optimize_mode == .Debug) break :blk false; |
| 549 | // break :blk self.header.?.flags & macho.MH_SUBSECTIONS_VIA_SYMBOLS != 0; |
| 550 | // }; |
| 551 | const is_splittable = false; |
| 549 | 552 | |
| 550 | 553 | macho_file.has_dices = macho_file.has_dices or blk: { |
| 551 | 554 | if (self.text_section_index) |index| { |