|
LLVM
3.7.0
|
#include <ELF.h>
Classes | |
| class | ArchivePointerTypeTraits |
| Archive files are 2 byte aligned, so we need this for PointerIntPair to work. More... | |
| class | ELFEntityIterator |
| Iterate over constant sized entities. More... | |
Definition at line 53 of file Object/ELF.h.
| typedef Elf_Dyn_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Dyn |
Definition at line 134 of file Object/ELF.h.
| typedef ELFEntityIterator<const Elf_Dyn> llvm::object::ELFFile< ELFT >::Elf_Dyn_Iter |
Definition at line 144 of file Object/ELF.h.
| typedef iterator_range<Elf_Dyn_Iter> llvm::object::ELFFile< ELFT >::Elf_Dyn_Range |
Definition at line 145 of file Object/ELF.h.
| typedef Elf_Ehdr_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Ehdr |
Definition at line 131 of file Object/ELF.h.
| typedef Elf_Hash_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Hash |
Definition at line 143 of file Object/ELF.h.
| typedef Elf_Phdr_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Phdr |
Definition at line 135 of file Object/ELF.h.
| typedef ELFEntityIterator<const Elf_Phdr> llvm::object::ELFFile< ELFT >::Elf_Phdr_Iter |
Iterate over program header table.
Definition at line 352 of file Object/ELF.h.
| typedef Elf_Rel_Impl<ELFT, false> llvm::object::ELFFile< ELFT >::Elf_Rel |
Definition at line 136 of file Object/ELF.h.
| typedef ELFEntityIterator<const Elf_Rel> llvm::object::ELFFile< ELFT >::Elf_Rel_Iter |
Definition at line 147 of file Object/ELF.h.
| typedef Elf_Rel_Impl<ELFT, true> llvm::object::ELFFile< ELFT >::Elf_Rela |
Definition at line 137 of file Object/ELF.h.
| typedef ELFEntityIterator<const Elf_Rela> llvm::object::ELFFile< ELFT >::Elf_Rela_Iter |
Definition at line 146 of file Object/ELF.h.
| typedef Elf_Shdr_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Shdr |
Definition at line 132 of file Object/ELF.h.
| typedef iterator_range<const Elf_Shdr *> llvm::object::ELFFile< ELFT >::Elf_Shdr_Range |
Definition at line 148 of file Object/ELF.h.
| typedef Elf_Sym_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Sym |
Definition at line 133 of file Object/ELF.h.
| typedef iterator_range<const Elf_Sym *> llvm::object::ELFFile< ELFT >::Elf_Sym_Range |
Definition at line 162 of file Object/ELF.h.
| typedef Elf_Verdaux_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Verdaux |
Definition at line 139 of file Object/ELF.h.
| typedef Elf_Verdef_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Verdef |
Definition at line 138 of file Object/ELF.h.
| typedef Elf_Vernaux_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Vernaux |
Definition at line 141 of file Object/ELF.h.
| typedef Elf_Verneed_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Verneed |
Definition at line 140 of file Object/ELF.h.
| typedef Elf_Versym_Impl<ELFT> llvm::object::ELFFile< ELFT >::Elf_Versym |
Definition at line 142 of file Object/ELF.h.
| typedef std::conditional<ELFT::Is64Bits, uint64_t, uint32_t>::type llvm::object::ELFFile< ELFT >::uintX_t |
Definition at line 57 of file Object/ELF.h.
| llvm::object::ELFFile< ELFT >::ELFFile | ( | StringRef | Object, |
| std::error_code & | EC | ||
| ) |
Definition at line 575 of file Object/ELF.h.
References llvm::object::Elf_Ehdr_Impl< ELFT >::e_shentsize, llvm::object::Elf_Ehdr_Impl< ELFT >::e_shoff, llvm::ErrorOr< T >::getError(), llvm::object::ELFFile< ELFT >::getNumSections(), llvm::object::ELFFile< ELFT >::getSection(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::object::ELFFile< ELFT >::getStringTableIndex(), llvm::object::parse_failed, llvm::object::ELFFile< ELFT >::sections(), llvm::ELF::SHN_UNDEF, llvm::ELF::SHT_DYNAMIC, llvm::ELF::SHT_DYNSYM, llvm::ELF::SHT_GNU_verdef, llvm::ELF::SHT_GNU_verneed, llvm::ELF::SHT_GNU_versym, llvm::ELF::SHT_HASH, llvm::ELF::SHT_SYMTAB, llvm::ELF::SHT_SYMTAB_SHNDX, llvm::StringRef::size(), and llvm::object::ELFFile< ELFT >::symbols().
|
inline |
Definition at line 315 of file Object/ELF.h.
|
inline |
Definition at line 322 of file Object/ELF.h.
|
inline |
Definition at line 296 of file Object/ELF.h.
References llvm::report_fatal_error().
Referenced by llvm::object::ELFFile< ELFT >::dynamic_symbols().
|
inline |
Definition at line 304 of file Object/ELF.h.
Referenced by llvm::object::ELFFile< ELFT >::dynamic_symbols().
|
inline |
Definition at line 311 of file Object/ELF.h.
References llvm::object::ELFFile< ELFT >::dynamic_symbol_begin(), llvm::object::ELFFile< ELFT >::dynamic_symbol_end(), and llvm::make_range().
|
inline |
Definition at line 292 of file Object/ELF.h.
References llvm::object::ELFFile< ELFT >::dynamic_table_begin(), llvm::object::ELFFile< ELFT >::dynamic_table_end(), and llvm::make_range().
| ELFFile< ELFT >::Elf_Dyn_Iter llvm::object::ELFFile< ELFT >::dynamic_table_begin | ( | ) | const |
Definition at line 824 of file Object/ELF.h.
Referenced by llvm::object::ELFFile< ELFT >::dynamic_table().
| ELFFile< ELFT >::Elf_Dyn_Iter llvm::object::ELFFile< ELFT >::dynamic_table_end | ( | bool | NULLEnd = false | ) | const |
| NULLEnd | use one past the first DT_NULL entry as the end instead of the section size. |
Definition at line 833 of file Object/ELF.h.
References llvm::ELF::DT_NULL, and llvm::MipsISD::Ret.
Referenced by llvm::object::ELFFile< ELFT >::dynamic_table().
|
inline |
Definition at line 244 of file Object/ELF.h.
|
inline |
Definition at line 243 of file Object/ELF.h.
| const char * llvm::object::ELFFile< ELFT >::getDynamicString | ( | uintX_t | Offset | ) | const |
Definition at line 911 of file Object/ELF.h.
| ErrorOr< StringRef > llvm::object::ELFFile< ELFT >::getDynamicSymbolName | ( | const Elf_Sym * | Symb | ) | const |
Definition at line 925 of file Object/ELF.h.
| const T * llvm::object::ELFFile< ELFT >::getEntry | ( | uint32_t | Section, |
| uint32_t | Entry | ||
| ) | const |
Definition at line 868 of file Object/ELF.h.
References llvm::ErrorOr< T >::getError(), and llvm::report_fatal_error().
| const T * llvm::object::ELFFile< ELFT >::getEntry | ( | const Elf_Shdr * | Section, |
| uint32_t | Entry | ||
| ) | const |
Definition at line 877 of file Object/ELF.h.
| ELF::Elf64_Word llvm::object::ELFFile< ELFT >::getExtendedSymbolTableIndex | ( | const Elf_Sym * | symb | ) | const |
Definition at line 471 of file Object/ELF.h.
References llvm::ELF::SHN_XINDEX.
|
inline |
Definition at line 245 of file Object/ELF.h.
|
inline |
Definition at line 369 of file Object/ELF.h.
| StringRef llvm::object::ELFFile< ELFT >::getLoadName | ( | ) | const |
Definition at line 853 of file Object/ELF.h.
References llvm::ELF::DT_SONAME.
| uint64_t llvm::object::ELFFile< ELFT >::getNumSections | ( | ) | const |
Definition at line 554 of file Object/ELF.h.
References llvm::ELF::SHN_UNDEF.
Referenced by llvm::object::ELFFile< ELFT >::ELFFile().
| std::pair<const Elf_Shdr *, const Elf_Sym *> llvm::object::ELFFile< ELFT >::getRelocationSymbol | ( | const Elf_Shdr * | RelSec, |
| const RelT * | Rel | ||
| ) | const |
Get the symbol table section and symbol for a given relocation.
| std::pair<const typename ELFFile<ELFT>::Elf_Shdr *, const typename ELFFile<ELFT>::Elf_Sym *> llvm::object::ELFFile< ELFT >::getRelocationSymbol | ( | const Elf_Shdr * | Sec, |
| const RelT * | Rel | ||
| ) | const |
Definition at line 542 of file Object/ELF.h.
References llvm::ErrorOr< T >::getError(), and llvm::report_fatal_error().
| StringRef llvm::object::ELFFile< ELFT >::getRelocationTypeName | ( | uint32_t | Type | ) | const |
Definition at line 503 of file Object/ELF.h.
References llvm::object::getELFRelocationTypeName().
| void llvm::object::ELFFile< ELFT >::getRelocationTypeName | ( | uint32_t | Type, |
| SmallVectorImpl< char > & | Result | ||
| ) | const |
Definition at line 508 of file Object/ELF.h.
References llvm::SmallVectorImpl< T >::append(), llvm::StringRef::begin(), llvm::StringRef::end(), Type2, and Type3.
| ErrorOr< const typename ELFFile< ELFT >::Elf_Shdr * > llvm::object::ELFFile< ELFT >::getSection | ( | const Elf_Sym * | symb | ) | const |
Definition at line 478 of file Object/ELF.h.
References llvm::ELF::SHN_LORESERVE, llvm::ELF::SHN_UNDEF, and llvm::ELF::SHN_XINDEX.
Referenced by llvm::object::ELFFile< ELFT >::ELFFile().
| ErrorOr< const typename ELFFile< ELFT >::Elf_Shdr * > llvm::object::ELFFile< ELFT >::getSection | ( | uint32_t | Index | ) | const |
Definition at line 885 of file Object/ELF.h.
References llvm::object::invalid_section_index.
| ErrorOr< ArrayRef< uint8_t > > llvm::object::ELFFile< ELFT >::getSectionContents | ( | const Elf_Shdr * | Sec | ) | const |
Definition at line 495 of file Object/ELF.h.
References llvm::makeArrayRef(), and llvm::object::parse_failed.
| ErrorOr< StringRef > llvm::object::ELFFile< ELFT >::getSectionName | ( | const Elf_Shdr * | Section | ) | const |
Definition at line 939 of file Object/ELF.h.
References llvm::object::parse_failed.
| ErrorOr< StringRef > llvm::object::ELFFile< ELFT >::getStaticSymbolName | ( | const Elf_Sym * | Symb | ) | const |
Definition at line 919 of file Object/ELF.h.
References llvm::object::Elf_Sym_Impl< ELFT >::getName().
| ErrorOr< StringRef > llvm::object::ELFFile< ELFT >::getStringTable | ( | const Elf_Shdr * | Section | ) | const |
Definition at line 897 of file Object/ELF.h.
References llvm::Data, llvm::object::parse_failed, llvm::ELF::SHT_STRTAB, and llvm::object::string_table_non_null_end.
Referenced by llvm::object::ELFFile< ELFT >::ELFFile().
| ELFFile< ELFT >::uintX_t llvm::object::ELFFile< ELFT >::getStringTableIndex | ( | ) | const |
Definition at line 564 of file Object/ELF.h.
References llvm::ELF::SHN_HIRESERVE, and llvm::ELF::SHN_UNDEF.
Referenced by llvm::object::ELFFile< ELFT >::ELFFile().
| const ELFFile< ELFT >::Elf_Sym * llvm::object::ELFFile< ELFT >::getSymbol | ( | uint32_t | index | ) | const |
Definition at line 489 of file Object/ELF.h.
| ErrorOr< StringRef > llvm::object::ELFFile< ELFT >::getSymbolName | ( | const Elf_Sym * | Symb, |
| bool | IsDynamic | ||
| ) | const |
Definition at line 930 of file Object/ELF.h.
| ErrorOr< StringRef > llvm::object::ELFFile< ELFT >::getSymbolVersion | ( | const Elf_Shdr * | section, |
| const Elf_Sym * | Symb, | ||
| bool & | IsDefault | ||
| ) | const |
Definition at line 947 of file Object/ELF.h.
References llvm::StringRef::find(), llvm::ErrorOr< T >::getError(), llvm::object::Elf_Sym_Impl< ELFT >::getName(), llvm::StringRef::npos, llvm::object::parse_failed, llvm::StringRef::size(), llvm::StringRef::substr(), llvm::ELF::VER_NDX_GLOBAL, llvm::ELF::VER_NDX_LOCAL, llvm::ELF::VERSYM_HIDDEN, llvm::ELF::VERSYM_VERSION, and llvm::object::Elf_Versym_Impl< ELFT >::vs_index.
|
inline |
|
inline |
Definition at line 265 of file Object/ELF.h.
References llvm::object::Elf_Ehdr_Impl< ELFT >::e_machine, llvm::ELF::ELFCLASS64, llvm::ELF::EM_MIPS, and llvm::object::Elf_Ehdr_Impl< ELFT >::getFileClass().
|
inline |
Definition at line 354 of file Object/ELF.h.
References llvm::object::Elf_Ehdr_Impl< ELFT >::e_phentsize, and llvm::object::Elf_Ehdr_Impl< ELFT >::e_phoff.
|
inline |
Definition at line 359 of file Object/ELF.h.
References llvm::object::Elf_Ehdr_Impl< ELFT >::e_phentsize, llvm::object::Elf_Ehdr_Impl< ELFT >::e_phnum, and llvm::object::Elf_Ehdr_Impl< ELFT >::e_phoff.
|
inline |
Definition at line 341 of file Object/ELF.h.
|
inline |
Definition at line 346 of file Object/ELF.h.
|
inline |
Definition at line 330 of file Object/ELF.h.
|
inline |
Definition at line 335 of file Object/ELF.h.
| const ELFFile< ELFT >::Elf_Shdr * llvm::object::ELFFile< ELFT >::section_begin | ( | ) | const |
Definition at line 793 of file Object/ELF.h.
References llvm::report_fatal_error().
Referenced by llvm::object::ELFFile< ELFT >::sections().
| const ELFFile< ELFT >::Elf_Shdr * llvm::object::ELFFile< ELFT >::section_end | ( | ) | const |
Definition at line 801 of file Object/ELF.h.
Referenced by llvm::object::ELFFile< ELFT >::sections().
|
inline |
Definition at line 278 of file Object/ELF.h.
References llvm::make_range(), llvm::object::ELFFile< ELFT >::section_begin(), and llvm::object::ELFFile< ELFT >::section_end().
Referenced by llvm::object::ELFFile< ELFT >::ELFFile().
| const ELFFile< ELFT >::Elf_Sym * llvm::object::ELFFile< ELFT >::symbol_begin | ( | ) | const |
Definition at line 806 of file Object/ELF.h.
References llvm::report_fatal_error().
Referenced by llvm::object::ELFFile< ELFT >::symbols().
| const ELFFile< ELFT >::Elf_Sym * llvm::object::ELFFile< ELFT >::symbol_end | ( | ) | const |
Definition at line 815 of file Object/ELF.h.
Referenced by llvm::object::ELFFile< ELFT >::symbols().
|
inline |
Definition at line 284 of file Object/ELF.h.
References llvm::make_range(), llvm::object::ELFFile< ELFT >::symbol_begin(), and llvm::object::ELFFile< ELFT >::symbol_end().
Referenced by llvm::object::ELFFile< ELFT >::ELFFile().
| void llvm::object::ELFFile< ELFT >::VerifyStrTab | ( | const Elf_Shdr * | sh | ) | const |
1.8.6