Home | History | Annotate | Download | only in Object

Lines Matching refs:Sec

70               unsigned Sec) {
79 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize;
155 DataRefImpl Sec) {
157 MachO::section_64 Sect = O->getSection64(Sec);
160 MachO::section Sect = O->getSection(Sec);
220 const char *Sec = getSectionPtr(Obj, Load, J);
221 Sections.push_back(Sec);
340 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const {
341 DataRefImpl DRI = Sec.getRawDataRefImpl();
404 section_iterator Sec = *getSymbolSection(Symb);
405 if (Sec->isData() || Sec->isBSS())
471 void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const {
472 Sec.d.a++;
475 std::error_code MachOObjectFile::getSectionName(DataRefImpl Sec,
477 ArrayRef<char> Raw = getSectionRawName(Sec);
482 uint64_t MachOObjectFile::getSectionAddress(DataRefImpl Sec) const {
484 return getSection64(Sec).addr;
485 return getSection(Sec).addr;
488 uint64_t MachOObjectFile::getSectionSize(DataRefImpl Sec) const {
497 MachO::section_64 Sect = getSection64(Sec);
502 MachO::section Sect = getSection(Sec);
517 std::error_code MachOObjectFile::getSectionContents(DataRefImpl Sec,
523 MachO::section_64 Sect = getSection64(Sec);
527 MachO::section Sect = getSection(Sec);
536 uint64_t MachOObjectFile::getSectionAlignment(DataRefImpl Sec) const {
539 MachO::section_64 Sect = getSection64(Sec);
542 MachO::section Sect = getSection(Sec);
549 bool MachOObjectFile::isSectionText(DataRefImpl Sec) const {
550 uint32_t Flags = getSectionFlags(this, Sec);
554 bool MachOObjectFile::isSectionData(DataRefImpl Sec) const {
555 uint32_t Flags = getSectionFlags(this, Sec);
562 bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const {
563 uint32_t Flags = getSectionFlags(this, Sec);
570 unsigned MachOObjectFile::getSectionID(SectionRef Sec) const {
571 return Sec.getRawDataRefImpl().d.a;
574 bool MachOObjectFile::isSectionVirtual(DataRefImpl Sec) const {
579 relocation_iterator MachOObjectFile::section_rel_begin(DataRefImpl Sec) const {
581 Ret.d.a = Sec.d.a;
587 MachOObjectFile::section_rel_end(DataRefImpl Sec) const {
590 MachO::section_64 Sect = getSection64(Sec);
593 MachO::section Sect = getSection(Sec);
598 Ret.d.a = Sec.d.a;
939 DataRefImpl Sec;
940 Sec.d.a = Rel->getRawDataRefImpl().d.a;
941 return section_iterator(SectionRef(Sec, this));
1861 MachOObjectFile::getSectionFinalSegmentName(DataRefImpl Sec) const {
1862 ArrayRef<char> Raw = getSectionRawFinalSegmentName(Sec);
1867 MachOObjectFile::getSectionRawName(DataRefImpl Sec) const {
1868 assert(Sec.d.a < Sections.size() && "Should have detected this earlier");
1870 reinterpret_cast<const section_base *>(Sections[Sec.d.a]);
1875 MachOObjectFile::getSectionRawFinalSegmentName(DataRefImpl Sec) const {
1876 assert(Sec.d.a < Sections.size() && "Should have detected this earlier");
1878 reinterpret_cast<const section_base *>(Sections[Sec.d.a]);
1973 const char *Sec = getSectionPtr(this, L, Index);
1974 return getStruct<MachO::section>(this, Sec);
1979 const char *Sec = getSectionPtr(this, L, Index);
1980 return getStruct<MachO::section_64>(this, Sec);
2102 DataRefImpl Sec;
2103 Sec.d.a = Rel.d.a;
2106 MachO::section_64 Sect = getSection64(Sec);
2109 MachO::section Sect = getSection(Sec);