Lines Matching refs:Sec

119 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec,  in getPaddingSize()  argument
121 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec); in getPaddingSize()
122 unsigned Next = Sec->getLayoutOrder() + 1; in getPaddingSize()
214 const MCSection &Sec, uint64_t VMAddr, in writeSection() argument
218 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeSection()
219 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec); in writeSection()
223 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!"); in writeSection()
249 W.write<uint32_t>(IndirectSymBase.lookup(&Sec)); // reserved1 in writeSection()
629 for (const MCSection *Sec : Layout.getSectionOrder()) { in computeSectionAddresses() local
630 StartAddress = alignTo(StartAddress, Sec->getAlignment()); in computeSectionAddresses()
631 SectionAddress[Sec] = StartAddress; in computeSectionAddresses()
632 StartAddress += Layout.getSectionAddressSize(Sec); in computeSectionAddresses()
637 StartAddress += getPaddingSize(Sec, Layout); in computeSectionAddresses()
803 for (const MCSection &Sec : Asm) { in writeObject() local
804 uint64_t Address = getSectionAddress(&Sec); in writeObject()
805 uint64_t Size = Layout.getSectionAddressSize(&Sec); in writeObject()
806 uint64_t FileSize = Layout.getSectionFileSize(&Sec); in writeObject()
807 FileSize += getPaddingSize(&Sec, Layout); in writeObject()
811 if (Sec.isVirtualSection()) in writeObject()
835 const auto &Sec = cast<MCSectionMachO>(Section); in writeObject() local
836 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject()
838 uint64_t SectionStart = SectionDataStart + getSectionAddress(&Sec); in writeObject()
839 unsigned Flags = Sec.getTypeAndAttributes(); in writeObject()
840 if (Sec.hasInstructions()) in writeObject()
842 writeSection(Layout, Sec, getSectionAddress(&Sec), SectionStart, Flags, in writeObject()
936 for (const MCSection &Sec : Asm) { in writeObject() local
937 Asm.writeSectionData(W.OS, &Sec, Layout); in writeObject()
939 uint64_t Pad = getPaddingSize(&Sec, Layout); in writeObject()
947 for (const MCSection &Sec : Asm) { in writeObject() local
950 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject()