Lines Matching refs:sect
151 uint32_t indirectSymbolIndex(const Section §, uint32_t &index);
152 uint32_t indirectSymbolElementSize(const Section §);
286 for (const Section § : file.sections) { in MachOFileLayout() local
287 if (isZeroFillSection(sect.type)) in MachOFileLayout()
288 _sectInfo[§].fileOffset = 0; in MachOFileLayout()
290 offset = llvm::alignTo(offset, sect.alignment); in MachOFileLayout()
291 _sectInfo[§].fileOffset = offset; in MachOFileLayout()
292 offset += sect.content.size(); in MachOFileLayout()
294 relocCount += sect.relocations.size(); in MachOFileLayout()
600 uint32_t MachOFileLayout::indirectSymbolIndex(const Section §, in indirectSymbolIndex() argument
602 if (sect.indirectSymbols.empty()) in indirectSymbolIndex()
605 index += sect.indirectSymbols.size(); in indirectSymbolIndex()
609 uint32_t MachOFileLayout::indirectSymbolElementSize(const Section §) { in indirectSymbolElementSize() argument
610 if (sect.indirectSymbols.empty()) in indirectSymbolElementSize()
612 if (sect.type != S_SYMBOL_STUBS) in indirectSymbolElementSize()
614 return sect.content.size() / sect.indirectSymbols.size(); in indirectSymbolElementSize()
707 typename T::section *sect = reinterpret_cast<typename T::section*> in writeSegmentLoadCommands() local
710 setString16(section->sectionName, sect->sectname); in writeSegmentLoadCommands()
711 setString16(section->segmentName, sect->segname); in writeSegmentLoadCommands()
712 sect->addr = section->address; in writeSegmentLoadCommands()
713 sect->size = section->content.size(); in writeSegmentLoadCommands()
715 sect->offset = 0; in writeSegmentLoadCommands()
717 sect->offset = section->address - seg.address + segInfo.fileOffset; in writeSegmentLoadCommands()
718 sect->align = llvm::Log2_32(section->alignment); in writeSegmentLoadCommands()
719 sect->reloff = 0; in writeSegmentLoadCommands()
720 sect->nreloc = 0; in writeSegmentLoadCommands()
721 sect->flags = section->type | section->attributes; in writeSegmentLoadCommands()
722 sect->reserved1 = indirectSymbolIndex(*section, indirectSymRunningIndex); in writeSegmentLoadCommands()
723 sect->reserved2 = indirectSymbolElementSize(*section); in writeSegmentLoadCommands()
725 swapStruct(*sect); in writeSegmentLoadCommands()
726 ++sect; in writeSegmentLoadCommands()
1029 for (Section sect : _file.sections) { in writeRelocations() local
1030 for (Relocation r : sect.relocations) { in writeRelocations()
1046 nb->n_sect = sym.sect; in appendSymbols()
1056 nb->n_sect = sym.sect; in appendSymbols()
1487 for (const Section § : _file.sections) { in computeSymbolTableSizes() local
1488 _indirectSymbolTableCount += sect.indirectSymbols.size(); in computeSymbolTableSizes()