| ... | ... | @@ -861,7 +861,10 @@ pub fn resolveMergeSubsections(self: *Object, elf_file: *Elf) error{ |
| 861 | 861 | for (imsec.strings.items, imsec.subsections.items) |str, *imsec_msub| { |
| 862 | 862 | const string = imsec.bytes.items[str.pos..][0..str.len]; |
| 863 | 863 | const res = try msec.insert(gpa, string); |
| 864 | | if (!res.found_existing) { |
| 864 | if (res.found_existing) { |
| 865 | const msub = msec.mergeSubsection(res.sub.*); |
| 866 | msub.alignment = msub.alignment.maxStrict(atom_ptr.alignment); |
| 867 | } else { |
| 865 | 868 | const msub_index = try msec.addMergeSubsection(gpa); |
| 866 | 869 | const msub = msec.mergeSubsection(msub_index); |
| 867 | 870 | msub.merge_section_index = imsec.merge_section_index; |