Lines Matching refs:osec
251 for (const OutputSection *osec : seg->getSections()) { in writeTo() local
252 if (osec->isHidden()) in writeTo()
258 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size()); in writeTo()
261 sectHdr->addr = osec->addr; in writeTo()
262 sectHdr->offset = osec->fileOff; in writeTo()
263 sectHdr->align = Log2_32(osec->align); in writeTo()
264 sectHdr->flags = osec->flags; in writeTo()
265 sectHdr->size = osec->getSize(); in writeTo()
266 sectHdr->reserved1 = osec->reserved1; in writeTo()
267 sectHdr->reserved2 = osec->reserved2; in writeTo()
949 for (const OutputSection *osec : seg->getSections()) in sortSegmentsAndSections() local
950 if (isThreadLocalData(osec->flags) && osec->align > tlvAlign) in sortSegmentsAndSections()
951 tlvAlign = osec->align; in sortSegmentsAndSections()
953 for (OutputSection *osec : seg->getSections()) { in sortSegmentsAndSections()
956 if (!osec->isHidden()) in sortSegmentsAndSections()
957 osec->index = ++sectionIndex; in sortSegmentsAndSections()
958 if (isThreadLocalData(osec->flags)) { in sortSegmentsAndSections()
960 firstTLVDataSection = osec; in sortSegmentsAndSections()
961 osec->align = tlvAlign; in sortSegmentsAndSections()
965 if (auto *merged = dyn_cast<ConcatOutputSection>(osec)) { in sortSegmentsAndSections()
1004 ConcatOutputSection *osec = cast<ConcatOutputSection>(isec->parent); in createOutputSections() local
1005 osec->addInput(isec); in createOutputSections()
1006 osec->inputOrder = in createOutputSections()
1007 std::min(osec->inputOrder, static_cast<int>(isec->outSecOff)); in createOutputSections()
1014 ConcatOutputSection *osec = it.second; in createOutputSections() local
1016 if (osec->isNeeded()) { in createOutputSections()
1018 if (osec->name == section_names::ehFrame && in createOutputSections()
1020 osec->align = target->wordSize; in createOutputSections()
1025 if (isThreadLocalVariables(osec->flags)) in createOutputSections()
1026 osec->align = std::max<uint32_t>(osec->align, target->wordSize); in createOutputSections()
1028 getOrCreateOutputSegment(segname)->addOutputSection(osec); in createOutputSections()
1064 for (OutputSection *osec : seg->getSections()) { in finalizeAddresses()
1065 if (!osec->isNeeded()) in finalizeAddresses()
1068 if (auto *concatOsec = dyn_cast<ConcatOutputSection>(osec)) in finalizeAddresses()
1109 for (LinkEditSection *osec : linkEditSections) in finalizeLinkEditSegment()
1110 if (osec) in finalizeLinkEditSegment()
1112 [](LinkEditSection *osec) { osec->finalizeContents(); }, osec)); in finalizeLinkEditSegment() argument
1128 for (OutputSection *osec : seg->getSections()) { in assignAddresses()
1129 if (!osec->isNeeded()) in assignAddresses()
1131 addr = alignToPowerOf2(addr, osec->align); in assignAddresses()
1132 fileOff = alignToPowerOf2(fileOff, osec->align); in assignAddresses()
1133 osec->addr = addr; in assignAddresses()
1134 osec->fileOff = isZeroFill(osec->flags) ? 0 : fileOff; in assignAddresses()
1135 osec->finalize(); in assignAddresses()
1136 osec->assignAddressesToStartEndSymbols(); in assignAddresses()
1138 addr += osec->getSize(); in assignAddresses()
1139 fileOff += osec->getFileSize(); in assignAddresses()
1161 parallelForEach(osecs.begin(), osecs.end(), [&](const OutputSection *osec) { in writeSections() argument
1162 osec->writeTo(buf + osec->fileOff); in writeSections()