Lines Matching refs:Sec

104 SectionType constructSection(MachOYAML::Section Sec) {  in constructSection()  argument
106 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16); in constructSection()
107 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16); in constructSection()
108 TempSec.addr = Sec.addr; in constructSection()
109 TempSec.size = Sec.size; in constructSection()
110 TempSec.offset = Sec.offset; in constructSection()
111 TempSec.align = Sec.align; in constructSection()
112 TempSec.reloff = Sec.reloff; in constructSection()
113 TempSec.nreloc = Sec.nreloc; in constructSection()
114 TempSec.flags = Sec.flags; in constructSection()
115 TempSec.reserved1 = Sec.reserved1; in constructSection()
116 TempSec.reserved2 = Sec.reserved2; in constructSection()
131 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() local
132 auto TempSec = constructSection<MachO::section>(Sec); in writeLoadCommandData()
146 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() local
147 auto TempSec = constructSection<MachO::section_64>(Sec); in writeLoadCommandData()
148 TempSec.reserved3 = Sec.reserved3; in writeLoadCommandData()
308 for (auto &Sec : LC.Sections) { in writeSectionData() local
309 ZeroToOffset(OS, Sec.offset); in writeSectionData()
312 if (OS.tell() - fileStart > Sec.offset && Sec.offset != (uint32_t)0) in writeSectionData()
317 StringRef SectName(Sec.sectname, in writeSectionData()
318 strnlen(Sec.sectname, sizeof(Sec.sectname))); in writeSectionData()
322 if (Sec.content) in writeSectionData()
334 if (MachO::isVirtualSection(Sec.flags & MachO::SECTION_TYPE)) in writeSectionData()
337 if (Sec.content) { in writeSectionData()
338 yaml::BinaryRef Content = *Sec.content; in writeSectionData()
340 ZeroFillBytes(OS, Sec.size - Content.binary_size()); in writeSectionData()
343 Fill(OS, Sec.size, 0xDEADBEEFu); in writeSectionData()
399 for (const MachOYAML::Section &Sec : LC.Sections) { in writeRelocations() local
400 if (Sec.relocations.empty()) in writeRelocations()
402 ZeroToOffset(OS, Sec.reloff); in writeRelocations()
403 for (const MachOYAML::Relocation &R : Sec.relocations) { in writeRelocations()