Previously we combined sections by name if linkerscript was used.
For that we had to disable SHF_MERGE handling temporarily, but then
found that implementing it properly will require additional complexity layers like
subsections or something.
At the same time looks we can live with multiple output sections approach for now.
That patch do this change.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Sorry for the belated response. Let's try this. LGTM.
ELF/LinkerScript.cpp | ||
---|---|---|
366 ↗ | (On Diff #69987) | findSection*s* |
368 ↗ | (On Diff #69987) | Out -> Ret (it is more conventional.) |
369–373 ↗ | (On Diff #69987) | for (OutputSectionBase<ELFT> *Sec : Sections) if (Sec->getName() == Cmd.Name && checkConstraint(Sec->getFlags(), Cmd.Constraint)) Out.push_back(Sec); |