Lines Matching refs:Sec
232 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const;
233 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const;
234 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const;
235 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const;
236 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const;
237 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const;
238 virtual error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb,
443 ::getSectionNext(DataRefImpl Sec, SectionRef &Result) const {
444 const uint8_t *sec = reinterpret_cast<const uint8_t *>(Sec.p);
445 sec += Header->e_shentsize;
446 Sec.p = reinterpret_cast<intptr_t>(sec);
447 Result = SectionRef(Sec, this);
453 ::getSectionName(DataRefImpl Sec,
455 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
456 Result = StringRef(getString(dot_shstrtab_sec, sec->sh_name));
462 ::getSectionAddress(DataRefImpl Sec,
464 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
465 Result = sec->sh_addr;
471 ::getSectionSize(DataRefImpl Sec,
473 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
474 Result = sec->sh_size;
480 ::getSectionContents(DataRefImpl Sec,
482 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
483 const char *start = (const char*)base() + sec->sh_offset;
484 Result = StringRef(start, sec->sh_size);
490 ::isSectionText(DataRefImpl Sec,
492 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
493 if (sec->sh_flags & ELF::SHF_EXECINSTR)
502 ::sectionContainsSymbol(DataRefImpl Sec,
665 const Elf_Shdr *sec = SymbolTableSections[Symb.d.b];
668 + sec->sh_offset
669 + (Symb.d.a * sec->sh_entsize));
675 const Elf_Shdr *sec = getSection(Symb.d.b);
676 if (sec->sh_type != ELF::SHT_SYMTAB)
679 return sec;