• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/

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