Lines Matching full:sec
32 static Section constructSectionCommon(const SectionType &Sec, uint32_t Index) { in constructSectionCommon() argument
33 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); in constructSectionCommon()
34 StringRef SectName(Sec.sectname, strnlen(Sec.sectname, sizeof(Sec.sectname))); in constructSectionCommon()
37 S.Addr = Sec.addr; in constructSectionCommon()
38 S.Size = Sec.size; in constructSectionCommon()
39 S.OriginalOffset = Sec.offset; in constructSectionCommon()
40 S.Align = Sec.align; in constructSectionCommon()
41 S.RelOff = Sec.reloff; in constructSectionCommon()
42 S.NReloc = Sec.nreloc; in constructSectionCommon()
43 S.Flags = Sec.flags; in constructSectionCommon()
44 S.Reserved1 = Sec.reserved1; in constructSectionCommon()
45 S.Reserved2 = Sec.reserved2; in constructSectionCommon()
50 Section constructSection(const MachO::section &Sec, uint32_t Index) { in constructSection() argument
51 return constructSectionCommon(Sec, Index); in constructSection()
54 Section constructSection(const MachO::section_64 &Sec, uint32_t Index) { in constructSection() argument
55 Section S = constructSectionCommon(Sec, Index); in constructSection()
56 S.Reserved3 = Sec.reserved3; in constructSection()
70 SectionType Sec; in extractSections() local
71 memcpy((void *)&Sec, reinterpret_cast<const char *>(Curr), in extractSections()
75 MachO::swapStruct(Sec); in extractSections()
78 std::make_unique<Section>(constructSection(Sec, NextSectionIndex))); in extractSections()
251 for (std::unique_ptr<Section> &Sec : LC.Sections) in setSymbolInRelocationInfo()
252 Sections.push_back(Sec.get()); in setSymbolInRelocationInfo()
255 for (std::unique_ptr<Section> &Sec : LC.Sections) in setSymbolInRelocationInfo()
256 for (auto &Reloc : Sec->Relocations) in setSymbolInRelocationInfo()
267 Reloc.Sec = Sections[SymbolNum - 1]; in setSymbolInRelocationInfo()
352 for (const std::unique_ptr<Section> &Sec : LC.Sections) in readSwiftVersion() local
353 if (Sec->Sectname == "__objc_imageinfo" && in readSwiftVersion()
354 (Sec->Segname == "__DATA" || Sec->Segname == "__DATA_CONST" || in readSwiftVersion()
355 Sec->Segname == "__DATA_DIRTY") && in readSwiftVersion()
356 Sec->Content.size() >= sizeof(ObjCImageInfo)) { in readSwiftVersion()
357 memcpy(&ImageInfo, Sec->Content.data(), sizeof(ObjCImageInfo)); in readSwiftVersion()