Commit 21510581 by Derek Mauro Committed by GitHub

Fix Android build of elf_mem_image.cc (#1052)

parent 6a72279e
...@@ -222,7 +222,7 @@ void ElfMemImage::Init(const void *base) { ...@@ -222,7 +222,7 @@ void ElfMemImage::Init(const void *base) {
reinterpret_cast<ElfW(Dyn) *>(dynamic_program_header->p_vaddr + reinterpret_cast<ElfW(Dyn) *>(dynamic_program_header->p_vaddr +
relocation); relocation);
for (; dynamic_entry->d_tag != DT_NULL; ++dynamic_entry) { for (; dynamic_entry->d_tag != DT_NULL; ++dynamic_entry) {
const ElfW(Xword) value = dynamic_entry->d_un.d_val + relocation; const auto value = dynamic_entry->d_un.d_val + relocation;
switch (dynamic_entry->d_tag) { switch (dynamic_entry->d_tag) {
case DT_HASH: case DT_HASH:
hash_ = reinterpret_cast<ElfW(Word) *>(value); hash_ = reinterpret_cast<ElfW(Word) *>(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment