summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/android_crazy_linker/README.chromium2
-rw-r--r--third_party/android_crazy_linker/src/src/crazy_linker_elf_view.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/third_party/android_crazy_linker/README.chromium b/third_party/android_crazy_linker/README.chromium
index 4153da5..6dc5095 100644
--- a/third_party/android_crazy_linker/README.chromium
+++ b/third_party/android_crazy_linker/README.chromium
@@ -41,3 +41,5 @@ Local Modifications:
- Implement LEB128 decoding more efficiently.
- Add support for unpacking relative relocations with addends, for arm64.
+
+- Fix phdr_table_get_dynamic_section() call in ElfView::InitUnmapped().
diff --git a/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.cpp b/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.cpp
index 89d66e9..120f9aa 100644
--- a/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.cpp
+++ b/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.cpp
@@ -29,7 +29,7 @@ bool ElfView::InitUnmapped(ELF::Addr load_address,
// Extract the dynamic table information.
phdr_table_get_dynamic_section(phdr,
phdr_count,
- load_address,
+ load_bias_,
&dynamic_,
&dynamic_count_,
&dynamic_flags_);