This is one part of the fix for PR42217.
Not sure where the best place to put the stripping of the section name suffix. I fear (maybe needlessly?) that it breaks something else if we'd place the logic e.g. somewhere in the Chunk classes.
Differential D63352
[LLD] [COFF] Strip section name suffix from mingw comdats mstorsjo on Jun 14 2019, 11:58 AM. Authored by
Details This is one part of the fix for PR42217. Not sure where the best place to put the stripping of the section name suffix. I fear (maybe needlessly?) that it breaks something else if we'd place the logic e.g. somewhere in the Chunk classes.
Diff Detail Event TimelineComment Actions lgtm I don't think we can do it earlier, I think this is the right spot to do this. It will cut down on memory usage as well, by the way, since we'll have fewer single Chunk PartialSection objects on mingw.
|
Please add a comment explaining that, on mingw, comdat groups are formed by putting the comdat group name after the $ in the section name. This code ignores the comdat group name for the purpose of section sorting.