================ @@ -2635,9 +2635,36 @@ template <class ELFT> Error ELFWriter<ELFT>::finalize() { } Error BinaryWriter::write() { - for (const SectionBase &Sec : Obj.allocSections()) + SmallVector<const SectionBase *, 30> LoadableSections; + for (const SectionBase &Sec : Obj.allocSections()) { + if (Sec.Type != SHT_NOBITS) + LoadableSections.push_back(&Sec); ---------------- quic-akaryaki wrote:
I renamed this variable to BitsSections, maybe not the best name, but accurate. https://github.com/llvm/llvm-project/pull/65815 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits