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