Lines Matching refs:osec
250 for (const OutputSection *osec : seg->getSections()) { in writeTo() local
251 if (osec->isHidden()) in writeTo()
257 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size()); in writeTo()
260 sectHdr->addr = osec->addr; in writeTo()
261 sectHdr->offset = osec->fileOff; in writeTo()
262 sectHdr->align = Log2_32(osec->align); in writeTo()
263 sectHdr->flags = osec->flags; in writeTo()
264 sectHdr->size = osec->getSize(); in writeTo()
265 sectHdr->reserved1 = osec->reserved1; in writeTo()
266 sectHdr->reserved2 = osec->reserved2; in writeTo()
894 for (const OutputSection *osec : seg->getSections()) in sortSegmentsAndSections() local
895 if (isThreadLocalData(osec->flags) && osec->align > tlvAlign) in sortSegmentsAndSections()
896 tlvAlign = osec->align; in sortSegmentsAndSections()
898 for (OutputSection *osec : seg->getSections()) { in sortSegmentsAndSections()
901 if (!osec->isHidden()) in sortSegmentsAndSections()
902 osec->index = ++sectionIndex; in sortSegmentsAndSections()
903 if (isThreadLocalData(osec->flags)) { in sortSegmentsAndSections()
905 firstTLVDataSection = osec; in sortSegmentsAndSections()
906 osec->align = tlvAlign; in sortSegmentsAndSections()
910 if (auto *merged = dyn_cast<ConcatOutputSection>(osec)) { in sortSegmentsAndSections()
951 ConcatOutputSection *osec = cast<ConcatOutputSection>(isec->parent); in createOutputSections() local
952 osec->addInput(isec); in createOutputSections()
953 osec->inputOrder = in createOutputSections()
954 std::min(osec->inputOrder, static_cast<int>(isec->outSecOff)); in createOutputSections()
961 ConcatOutputSection *osec = it.second; in createOutputSections() local
963 if (osec->isNeeded()) { in createOutputSections()
965 if (osec->name == section_names::ehFrame && in createOutputSections()
967 osec->align = target->wordSize; in createOutputSections()
969 getOrCreateOutputSegment(segname)->addOutputSection(osec); in createOutputSections()
1005 for (OutputSection *osec : seg->getSections()) { in finalizeAddresses()
1006 if (!osec->isNeeded()) in finalizeAddresses()
1009 if (auto concatOsec = dyn_cast<ConcatOutputSection>(osec)) in finalizeAddresses()
1053 for (LinkEditSection *osec : linkEditSections) in finalizeLinkEditSegment()
1054 if (osec) in finalizeLinkEditSegment()
1056 [](LinkEditSection *osec) { osec->finalizeContents(); }, osec)); in finalizeLinkEditSegment() argument
1072 for (OutputSection *osec : seg->getSections()) { in assignAddresses()
1073 if (!osec->isNeeded()) in assignAddresses()
1075 addr = alignTo(addr, osec->align); in assignAddresses()
1076 fileOff = alignTo(fileOff, osec->align); in assignAddresses()
1077 osec->addr = addr; in assignAddresses()
1078 osec->fileOff = isZeroFill(osec->flags) ? 0 : fileOff; in assignAddresses()
1079 osec->finalize(); in assignAddresses()
1080 osec->assignAddressesToStartEndSymbols(); in assignAddresses()
1082 addr += osec->getSize(); in assignAddresses()
1083 fileOff += osec->getFileSize(); in assignAddresses()
1105 parallelForEach(osecs.begin(), osecs.end(), [&](const OutputSection *osec) { in writeSections() argument
1106 osec->writeTo(buf + osec->fileOff); in writeSections()