Home | History | Annotate | Download | only in MC

Lines Matching refs:Sec

106 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec,
108 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec);
109 unsigned Next = Sec->getLayoutOrder() + 1;
197 const MCSection &Sec, uint64_t VMAddr,
201 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec);
202 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec);
206 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!");
232 write32(IndirectSymBase.lookup(&Sec)); // reserved1
608 for (const MCSection *Sec : Layout.getSectionOrder()) {
609 StartAddress = RoundUpToAlignment(StartAddress, Sec->getAlignment());
610 SectionAddress[Sec] = StartAddress;
611 StartAddress += Layout.getSectionAddressSize(Sec);
616 StartAddress += getPaddingSize(Sec, Layout);
767 for (const MCSection &Sec : Asm) {
768 uint64_t Address = getSectionAddress(&Sec);
769 uint64_t Size = Layout.getSectionAddressSize(&Sec);
770 uint64_t FileSize = Layout.getSectionFileSize(&Sec);
771 FileSize += getPaddingSize(&Sec, Layout);
775 if (Sec.isVirtualSection())
799 const auto &Sec = cast<MCSectionMachO>(Section);
800 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec];
802 uint64_t SectionStart = SectionDataStart + getSectionAddress(&Sec);
803 unsigned Flags = Sec.getTypeAndAttributes();
804 if (Sec.hasInstructions())
806 writeSection(Layout, Sec, getSectionAddress(&Sec), SectionStart, Flags,
894 for (const MCSection &Sec : Asm) {
895 Asm.writeSectionData(&Sec, Layout);
897 uint64_t Pad = getPaddingSize(&Sec, Layout);
905 for (const MCSection &Sec : Asm) {
908 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec];