Skip to content

Commit bd000c0

Browse files
cmticeMaskRay
authored andcommitted
[lld][ELF] Implement merged .debug_names section.
Set augmentation string size from the augmentation string (for error handling case).
1 parent 5bd269a commit bd000c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/SyntheticSections.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3129,8 +3129,8 @@ void DebugNamesSection<ELFT>::collectMergedCounts(
31293129
data.hdr.AugmentationString)) {
31303130
// There are conflicting augmentation strings, so it's best for the
31313131
// merged index to not use an augmentation string.
3132-
mergedHdr.AugmentationStringSize = 8;
31333132
mergedHdr.AugmentationString = " ";
3133+
mergedHdr.AugmentationStringSize = mergedHdr.AugmentationString.size();
31343134
}
31353135
}
31363136
}

0 commit comments

Comments
 (0)