Since I think we are all agree that linkerscript should create sections by itself
(if SECTIONS command is present),
then we might want to reuse the OutputSectionFactory (D19976 already do that now),
so this patch moves it out from writer cpp file for that purpose.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Comment Actions
- Rebased.
- Split declaration and definition to cpp/h files for OutputSectionFactory and DenseMapInfo<lld::elf::SectionKey<Is64Bits>>.
This class (actually a struct) doesn't know how to create output sections. You have moved the comment to a wrong place.