• Home
  • Raw
  • Download

Lines Matching full:sect

53   SectionInfo(StringRef seg, StringRef sect, SectionType type,
158 void appendAtom(SectionInfo *sect, const DefinedAtom *atom);
165 void segIndexForSection(const SectionInfo *sect,
241 for (auto sect : _sectionMap) { in getRelocatableSection() local
242 if (sect.second->sectionName.equals(sectionName) && in getRelocatableSection()
243 sect.second->segmentName.equals(segmentName)) { in getRelocatableSection()
244 return sect.second; in getRelocatableSection()
248 auto *sect = new (_allocator) in getRelocatableSection() local
251 _sectionInfos.push_back(sect); in getRelocatableSection()
252 _sectionMap[type] = sect; in getRelocatableSection()
253 return sect; in getRelocatableSection()
256 #define ENTRY(seg, sect, type, atomType) \ argument
257 {seg, sect, type, DefinedAtom::atomType }
326 for (auto sect : _sectionMap) { in getFinalSection() local
327 if (sect.second->sectionName.equals(p.sectionName) && in getFinalSection()
328 sect.second->segmentName.equals(p.segmentName)) { in getFinalSection()
329 return sect.second; in getFinalSection()
333 auto *sect = new (_allocator) SectionInfo( in getFinalSection() local
336 _sectionInfos.push_back(sect); in getFinalSection()
337 _sectionMap[atomType] = sect; in getFinalSection()
338 return sect; in getFinalSection()
356 for(SectionInfo *sect : _customSections) { in sectionForAtom()
357 const DefinedAtom *firstAtom = sect->atomsAndOffsets.front().atom; in sectionForAtom()
359 return sect; in sectionForAtom()
367 auto *sect = in sectionForAtom() local
370 _customSections.push_back(sect); in sectionForAtom()
371 _sectionInfos.push_back(sect); in sectionForAtom()
372 return sect; in sectionForAtom()
376 void Util::appendAtom(SectionInfo *sect, const DefinedAtom *atom) { in appendAtom() argument
378 uint64_t offset = sect->size; in appendAtom()
390 if (align > sect->alignment) in appendAtom()
391 sect->alignment = atomAlign.value; in appendAtom()
394 sect->atomsAndOffsets.push_back(ai); in appendAtom()
396 sect->size = offset + atom->size(); in appendAtom()
495 unsigned Util::TextSectionSorter::weight(const SectionInfo *sect) { in weight() argument
496 return llvm::StringSwitch<unsigned>(sect->sectionName) in weight()
551 for (SectionInfo *sect : seg->sections) in organizeSections()
552 sect->finalSectionIndex = sectionIndex++; in organizeSections()
558 for (SectionInfo *sect : seg->sections) { in layoutSectionsInSegment()
559 sect->address = llvm::alignTo(addr, sect->alignment); in layoutSectionsInSegment()
560 addr = sect->address + sect->size; in layoutSectionsInSegment()
572 SectionInfo *sect = *it; in layoutSectionsInTextSegment() local
573 taddr -= sect->size; in layoutSectionsInTextSegment()
574 taddr = taddr & (0 - sect->alignment); in layoutSectionsInTextSegment()
581 for (SectionInfo *sect : seg->sections) { in layoutSectionsInTextSegment()
582 sect->address = llvm::alignTo(addr, sect->alignment); in layoutSectionsInTextSegment()
583 addr = sect->address + sect->size; in layoutSectionsInTextSegment()
742 for (SectionInfo *sect : _sectionInfos) { in buildAtomToAddressMap()
743 for (const AtomInfo &info : sect->atomsAndOffsets) { in buildAtomToAddressMap()
744 _atomToAddress[info.atom] = sect->address + info.offsetInSection; in buildAtomToAddressMap()
806 for (SectionInfo *sect : _sectionInfos) { in synthesizeDebugNotes()
807 for (const AtomInfo &info : sect->atomsAndOffsets) { in synthesizeDebugNotes()
1043 sym.sect = stab.other; in addSymbols()
1056 for (SectionInfo *sect : _sectionInfos) { in addSymbols()
1057 for (const AtomInfo &info : sect->atomsAndOffsets) { in addSymbols()
1066 AtomAndIndex ai = { atom, sect->finalSectionIndex, symbolScope }; in addSymbols()
1073 sym.sect = sect->finalSectionIndex; in addSymbols()
1089 sym.sect = sect->finalSectionIndex; in addSymbols()
1106 sym.sect = ai.index; in addSymbols()
1138 sym.sect = 0; in addSymbols()
1269 void Util::segIndexForSection(const SectionInfo *sect, uint8_t &segmentIndex, in segIndexForSection() argument
1273 if ((seg->address <= sect->address) in segIndexForSection()
1274 && (seg->address+seg->size >= sect->address+sect->size)) { in segIndexForSection()
1430 for (SectionInfo *sect : _sectionInfos) { in addRebaseAndBindingInfo()
1431 segIndexForSection(sect, segmentIndex, segmentStartAddr); in addRebaseAndBindingInfo()
1432 for (const AtomInfo &info : sect->atomsAndOffsets) { in addRebaseAndBindingInfo()
1537 for (SectionInfo *sect : _sectionInfos) { in addExportInfo()
1538 for (const AtomInfo &info : sect->atomsAndOffsets) { in addExportInfo()