LLVM
8.0.1
|
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/BinaryFormat/COFF.h"
#include "llvm/Object/Binary.h"
#include "llvm/Object/COFF.h"
#include "llvm/Object/Error.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/BinaryStreamReader.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <limits>
#include <memory>
#include <system_error>
Go to the source code of this file.
Macros | |
#define | LLVM_COFF_SWITCH_RELOC_TYPE_NAME(reloc_type) |
#define | RETURN_IF_ERROR(E) |
Functions | |
static bool | checkSize (MemoryBufferRef M, std::error_code &EC, uint64_t Size) |
template<typename T > | |
static std::error_code | getObject (const T *&Obj, MemoryBufferRef M, const void *Ptr, const uint64_t Size=sizeof(T)) |
static bool | decodeBase64StringEntry (StringRef Str, uint32_t &Result) |
static uint32_t | getNumberOfRelocations (const coff_section *Sec, MemoryBufferRef M, const uint8_t *base) |
static const coff_relocation * | getFirstReloc (const coff_section *Sec, MemoryBufferRef M, const uint8_t *Base) |
static imported_symbol_iterator | makeImportedSymbolIterator (const COFFObjectFile *Object, uintptr_t Ptr, int Index) |
static imported_symbol_iterator | importedSymbolBegin (uint32_t RVA, const COFFObjectFile *Object) |
static imported_symbol_iterator | importedSymbolEnd (uint32_t RVA, const COFFObjectFile *Object) |
#define LLVM_COFF_SWITCH_RELOC_TYPE_NAME | ( | reloc_type | ) |
Definition at line 1201 of file COFFObjectFile.cpp.
Referenced by llvm::object::COFFObjectFile::getRelocationTypeName().
#define RETURN_IF_ERROR | ( | E | ) |
Definition at line 1686 of file COFFObjectFile.cpp.
Referenced by llvm::object::ResourceSectionRef::getEntryNameString().
|
static |
Definition at line 47 of file COFFObjectFile.cpp.
References llvm::MemoryBufferRef::getBufferSize(), Size, and llvm::object::unexpected_eof.
Referenced by llvm::object::COFFObjectFile::COFFObjectFile().
Definition at line 70 of file COFFObjectFile.cpp.
References assert(), llvm::StringRef::empty(), llvm::max(), llvm::StringRef::size(), and llvm::StringRef::substr().
Referenced by llvm::object::COFFObjectFile::getSectionName().
|
static |
Definition at line 365 of file COFFObjectFile.cpp.
References llvm::sys::path::begin(), llvm::object::Binary::checkOffset(), and getNumberOfRelocations().
Referenced by llvm::object::COFFObjectFile::getRelocations(), llvm::object::COFFObjectFile::section_rel_begin(), and llvm::object::COFFObjectFile::section_rel_end().
|
static |
Definition at line 347 of file COFFObjectFile.cpp.
References getObject().
Referenced by getFirstReloc(), llvm::object::COFFObjectFile::getRelocations(), and llvm::object::COFFObjectFile::section_rel_end().
|
static |
Definition at line 58 of file COFFObjectFile.cpp.
References llvm::object::Binary::checkOffset(), and Size.
Referenced by llvm::object::COFFObjectFile::COFFObjectFile(), llvm::object::ELFRelocationRef::getAddend(), llvm::object::ELFSymbolRef::getELFType(), llvm::object::ELFSectionRef::getFlags(), llvm::object::ImportDirectoryEntryRef::getImportTableEntry(), getNumberOfRelocations(), llvm::object::ELFSectionRef::getOffset(), llvm::object::ELFSymbolRef::getOther(), llvm::object::ELFSymbolRef::getSize(), llvm::object::ELFSectionRef::getType(), and llvm::object::COFFObjectFile::section_rel_end().
|
static |
Definition at line 1345 of file COFFObjectFile.cpp.
References makeImportedSymbolIterator().
Referenced by llvm::object::ImportDirectoryEntryRef::imported_symbol_begin(), llvm::object::DelayImportDirectoryEntryRef::imported_symbol_begin(), and llvm::object::ImportDirectoryEntryRef::lookup_table_begin().
|
static |
Definition at line 1352 of file COFFObjectFile.cpp.
References makeImportedSymbolIterator().
Referenced by llvm::object::ImportDirectoryEntryRef::imported_symbol_end(), llvm::object::DelayImportDirectoryEntryRef::imported_symbol_end(), and llvm::object::ImportDirectoryEntryRef::lookup_table_end().
|
static |
Definition at line 1334 of file COFFObjectFile.cpp.
References P.
Referenced by importedSymbolBegin(), and importedSymbolEnd().