Lines Matching full:seg

143   LCSegment(StringRef name, OutputSegment *seg) : name(name), seg(seg) {}  in LCSegment()  argument
147 seg->numNonHiddenSections() * sizeof(section_64); in getSize()
157 c->fileoff = seg->fileOff; in writeTo()
158 c->maxprot = seg->maxProt; in writeTo()
159 c->initprot = seg->initProt; in writeTo()
161 if (seg->getSections().empty()) in writeTo()
164 c->vmaddr = seg->firstSection()->addr; in writeTo()
166 seg->lastSection()->addr + seg->lastSection()->getSize() - c->vmaddr; in writeTo()
167 c->nsects = seg->numNonHiddenSections(); in writeTo()
169 for (OutputSection *osec : seg->getSections()) { in writeTo()
171 assert(osec->fileOff >= seg->fileOff); in writeTo()
173 c->filesize, osec->fileOff + osec->getFileSize() - seg->fileOff); in writeTo()
197 OutputSegment *seg; member in __anon6a2cea2f0111::LCSegment
433 for (OutputSegment *seg : outputSegments) { in createLoadCommands()
434 in.header->addLoadCommand(make<LCSegment>(seg->name, seg)); in createLoadCommands()
435 seg->index = segIndex++; in createLoadCommands()
495 static int segmentOrder(OutputSegment *seg) { in segmentOrder() argument
496 return StringSwitch<int>(seg->name) in segmentOrder()
549 for (OutputSegment *seg : outputSegments) { in sortSegmentsAndSections()
550 seg->sortOutputSections(compareByOrder<OutputSection *>(sectionOrder)); in sortSegmentsAndSections()
551 for (auto *osec : seg->getSections()) { in sortSegmentsAndSections()
626 void Writer::assignAddresses(OutputSegment *seg) { in assignAddresses() argument
629 seg->fileOff = fileOff; in assignAddresses()
631 for (auto *osec : seg->getSections()) { in assignAddresses()
659 for (OutputSegment *seg : outputSegments) in writeSections()
660 for (OutputSection *osec : seg->getSections()) in writeSections()
707 for (OutputSegment *seg : outputSegments) in run()
708 if (seg != linkEditSegment) in run()
709 assignAddresses(seg); in run()