mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
parent
a072d821be
commit
6e8b07ca15
1 changed files with 4 additions and 1 deletions
|
|
@ -861,7 +861,10 @@ pub fn resolveMergeSubsections(self: *Object, elf_file: *Elf) error{
|
|||
for (imsec.strings.items, imsec.subsections.items) |str, *imsec_msub| {
|
||||
const string = imsec.bytes.items[str.pos..][0..str.len];
|
||||
const res = try msec.insert(gpa, string);
|
||||
if (!res.found_existing) {
|
||||
if (res.found_existing) {
|
||||
const msub = msec.mergeSubsection(res.sub.*);
|
||||
msub.alignment = msub.alignment.maxStrict(atom_ptr.alignment);
|
||||
} else {
|
||||
const msub_index = try msec.addMergeSubsection(gpa);
|
||||
const msub = msec.mergeSubsection(msub_index);
|
||||
msub.merge_section_index = imsec.merge_section_index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue