Lines Matching refs:Sec
102 SectionType constructSection(MachOYAML::Section Sec) { in constructSection() argument
104 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16); in constructSection()
105 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16); in constructSection()
106 TempSec.addr = Sec.addr; in constructSection()
107 TempSec.size = Sec.size; in constructSection()
108 TempSec.offset = Sec.offset; in constructSection()
109 TempSec.align = Sec.align; in constructSection()
110 TempSec.reloff = Sec.reloff; in constructSection()
111 TempSec.nreloc = Sec.nreloc; in constructSection()
112 TempSec.flags = Sec.flags; in constructSection()
113 TempSec.reserved1 = Sec.reserved1; in constructSection()
114 TempSec.reserved2 = Sec.reserved2; in constructSection()
129 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() local
130 auto TempSec = constructSection<MachO::section>(Sec); in writeLoadCommandData()
144 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() local
145 auto TempSec = constructSection<MachO::section_64>(Sec); in writeLoadCommandData()
146 TempSec.reserved3 = Sec.reserved3; in writeLoadCommandData()
278 for (auto &Sec : LC.Sections) { in writeSectionData() local
279 ZeroToOffset(OS, Sec.offset); in writeSectionData()
282 if (OS.tell() - fileStart > Sec.offset && Sec.offset != (uint32_t)0) in writeSectionData()
287 StringRef SectName(Sec.sectname, in writeSectionData()
288 strnlen(Sec.sectname, sizeof(Sec.sectname))); in writeSectionData()
292 if (Sec.content) in writeSectionData()
304 if (MachO::isVirtualSection(Sec.flags & MachO::SECTION_TYPE)) in writeSectionData()
307 if (Sec.content) { in writeSectionData()
308 yaml::BinaryRef Content = *Sec.content; in writeSectionData()
310 ZeroFillBytes(OS, Sec.size - Content.binary_size()); in writeSectionData()
313 Fill(OS, Sec.size, 0xDEADBEEFu); in writeSectionData()
362 for (const MachOYAML::Section &Sec : LC.Sections) { in writeRelocations() local
363 if (Sec.relocations.empty()) in writeRelocations()
365 ZeroToOffset(OS, Sec.reloff); in writeRelocations()
366 for (const MachOYAML::Relocation &R : Sec.relocations) { in writeRelocations()