Lines Matching refs:Sec

109 SectionType constructSection(const MachOYAML::Section &Sec) {  in constructSection()  argument
111 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16); in constructSection()
112 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16); in constructSection()
113 TempSec.addr = Sec.addr; in constructSection()
114 TempSec.size = Sec.size; in constructSection()
115 TempSec.offset = Sec.offset; in constructSection()
116 TempSec.align = Sec.align; in constructSection()
117 TempSec.reloff = Sec.reloff; in constructSection()
118 TempSec.nreloc = Sec.nreloc; in constructSection()
119 TempSec.flags = Sec.flags; in constructSection()
120 TempSec.reserved1 = Sec.reserved1; in constructSection()
121 TempSec.reserved2 = Sec.reserved2; in constructSection()
136 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() local
137 auto TempSec = constructSection<MachO::section>(Sec); in writeLoadCommandData()
151 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() local
152 auto TempSec = constructSection<MachO::section_64>(Sec); in writeLoadCommandData()
153 TempSec.reserved3 = Sec.reserved3; in writeLoadCommandData()
313 for (auto &Sec : LC.Sections) { in writeSectionData() local
314 ZeroToOffset(OS, Sec.offset); in writeSectionData()
317 if (OS.tell() - fileStart > Sec.offset && Sec.offset != (uint32_t)0) in writeSectionData()
324 Sec.sectname, Sec.segname, OS.tell(), fileStart, in writeSectionData()
325 Sec.offset.value)); in writeSectionData()
327 StringRef SectName(Sec.sectname, in writeSectionData()
328 strnlen(Sec.sectname, sizeof(Sec.sectname))); in writeSectionData()
332 if (Sec.content) in writeSectionData()
344 if (MachO::isVirtualSection(Sec.flags & MachO::SECTION_TYPE)) in writeSectionData()
347 if (Sec.content) { in writeSectionData()
348 yaml::BinaryRef Content = *Sec.content; in writeSectionData()
350 ZeroFillBytes(OS, Sec.size - Content.binary_size()); in writeSectionData()
353 Fill(OS, Sec.size, 0xDEADBEEFu); in writeSectionData()
409 for (const MachOYAML::Section &Sec : LC.Sections) { in writeRelocations() local
410 if (Sec.relocations.empty()) in writeRelocations()
412 ZeroToOffset(OS, Sec.reloff); in writeRelocations()
413 for (const MachOYAML::Relocation &R : Sec.relocations) { in writeRelocations()