Lines Matching refs:sect

151   uint32_t    indirectSymbolIndex(const Section &sect, uint32_t &index);
152 uint32_t indirectSymbolElementSize(const Section &sect);
288 for (const Section &sect : file.sections) { in MachOFileLayout() local
289 if (isZeroFillSection(sect.type)) in MachOFileLayout()
290 _sectInfo[&sect].fileOffset = 0; in MachOFileLayout()
292 offset = llvm::alignTo(offset, sect.alignment); in MachOFileLayout()
293 _sectInfo[&sect].fileOffset = offset; in MachOFileLayout()
294 offset += sect.content.size(); in MachOFileLayout()
296 relocCount += sect.relocations.size(); in MachOFileLayout()
604 uint32_t MachOFileLayout::indirectSymbolIndex(const Section &sect, in indirectSymbolIndex() argument
606 if (sect.indirectSymbols.empty()) in indirectSymbolIndex()
609 index += sect.indirectSymbols.size(); in indirectSymbolIndex()
613 uint32_t MachOFileLayout::indirectSymbolElementSize(const Section &sect) { in indirectSymbolElementSize() argument
614 if (sect.indirectSymbols.empty()) in indirectSymbolElementSize()
616 if (sect.type != S_SYMBOL_STUBS) in indirectSymbolElementSize()
618 return sect.content.size() / sect.indirectSymbols.size(); in indirectSymbolElementSize()
713 typename T::section *sect = reinterpret_cast<typename T::section*> in writeSegmentLoadCommands() local
716 setString16(section->sectionName, sect->sectname); in writeSegmentLoadCommands()
717 setString16(section->segmentName, sect->segname); in writeSegmentLoadCommands()
718 sect->addr = section->address; in writeSegmentLoadCommands()
719 sect->size = section->content.size(); in writeSegmentLoadCommands()
721 sect->offset = 0; in writeSegmentLoadCommands()
723 sect->offset = section->address - seg.address + segInfo.fileOffset; in writeSegmentLoadCommands()
724 sect->align = llvm::Log2_32(section->alignment); in writeSegmentLoadCommands()
725 sect->reloff = 0; in writeSegmentLoadCommands()
726 sect->nreloc = 0; in writeSegmentLoadCommands()
727 sect->flags = section->type | section->attributes; in writeSegmentLoadCommands()
728 sect->reserved1 = indirectSymbolIndex(*section, indirectSymRunningIndex); in writeSegmentLoadCommands()
729 sect->reserved2 = indirectSymbolElementSize(*section); in writeSegmentLoadCommands()
731 swapStruct(*sect); in writeSegmentLoadCommands()
732 ++sect; in writeSegmentLoadCommands()
1037 for (Section sect : _file.sections) { in writeRelocations() local
1038 for (Relocation r : sect.relocations) { in writeRelocations()
1054 nb->n_sect = sym.sect; in appendSymbols()
1064 nb->n_sect = sym.sect; in appendSymbols()
1495 for (const Section &sect : _file.sections) { in computeSymbolTableSizes() local
1496 _indirectSymbolTableCount += sect.indirectSymbols.size(); in computeSymbolTableSizes()