Lines Matching defs:section

244   const Elf_Shdr *dot_symtab_sec;   // Symbol table section.
304 const char *getString(uint32_t section, uint32_t offset) const;
305 const char *getString(const Elf_Shdr *section, uint32_t offset) const;
307 ErrorOr<StringRef> getSymbolVersion(const Elf_Shdr *section,
316 /// \brief Get the symbol table section and symbol for a given relocation.
345 /// the section size.
413 /// \param SymTab The symbol table section \p Symb is contained in.
437 unsigned vd_size = sec->sh_size; // Size of section in bytes
441 // The first Verdef entry is at the start of the section.
458 // Iterate through the versions needed section, and place each Elf_Vernaux
462 unsigned vn_size = sec->sh_size; // Size of section in bytes
466 // The first Verneed entry is at the start of the section.
698 report_fatal_error("More than one .gnu.version section!");
704 report_fatal_error("More than one .gnu.version_d section!");
710 report_fatal_error("More than one .gnu.version_r section!");
750 // Get the symbol table index in the symtab section given a symbol
858 report_fatal_error("Invalid section index!");
866 const char *ELFFile<ELFT>::getString(uint32_t section,
868 return getString(getSection(section), offset);
872 const char *ELFFile<ELFT>::getString(const Elf_Shdr *section,
874 assert(section && section->sh_type == ELF::SHT_STRTAB && "Invalid section!");
875 if (offset >= section->sh_size)
878 return (const char *)base() + section->sh_offset + offset;
922 ErrorOr<StringRef> ELFFile<ELFT>::getSymbolVersion(const Elf_Shdr *section,
926 if (section != DynSymRegion.Addr && section != nullptr) {
930 ErrorOr<StringRef> SymName = getSymbolName(section, symb);
998 /// This function returns the hash value for a symbol in the .dynsym section