Flutter Engine
The Flutter Engine
|
Public Member Functions | |
LoadedElf (std::unique_ptr< Mappable > mappable, uint64_t elf_data_offset) | |
~LoadedElf () | |
bool | Load () |
bool | ResolveSymbols (const uint8_t **vm_data, const uint8_t **vm_instrs, const uint8_t **isolate_data, const uint8_t **isolate_instrs) |
const char * | error () |
A loader for a subset of ELF which may be used to load objects produced by Dart_CreateAppAOTSnapshotAsElf.
Definition at line 167 of file elf_loader.cc.
|
inlineexplicit |
Definition at line 169 of file elf_loader.cc.
dart::bin::elf::LoadedElf::~LoadedElf | ( | ) |
Definition at line 297 of file elf_loader.cc.
|
inline |
Definition at line 197 of file elf_loader.cc.
bool dart::bin::elf::LoadedElf::Load | ( | ) |
Loads the ELF object into memory. Returns whether the load was successful. On failure, the error may be retrieved by 'error()'.
Definition at line 272 of file elf_loader.cc.
bool dart::bin::elf::LoadedElf::ResolveSymbols | ( | const uint8_t ** | vm_data, |
const uint8_t ** | vm_instrs, | ||
const uint8_t ** | isolate_data, | ||
const uint8_t ** | isolate_instrs | ||
) |
Reads Dart-specific symbols from the loaded ELF.
Stores the address of the corresponding symbol in each non-null output parameter.
Fails if any output parameter is non-null but points to null and the corresponding symbol was not found, or if the dynamic symbol table could not be decoded.
Has the side effect of initializing the relocated addresses for the text sections corresponding to non-null output parameters in the BSS segment.
On failure, the error may be retrieved by 'error()'.
Definition at line 505 of file elf_loader.cc.