Fix argument passed to phdr_table_get_dynamic_section().
commitd62a489312a43c9d55450b8b490cc1326cccf336
authorsimonb@chromium.org <simonb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 20 Aug 2014 14:34:24 +0000 (20 14:34 +0000)
committersimonb@chromium.org <simonb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 20 Aug 2014 14:36:08 +0000 (20 14:36 +0000)
treedb5cadb93ca45ef89f26c7b509128208d64c1439
parent6b0bc87b209680fbc5289332e78ed03a95f0e7d1
Fix argument passed to phdr_table_get_dynamic_section().

phdr_table_get_dynamic_section() expects to receive the load_bias_,
but ElfView::InitUnmapped() currently passes the load_address.

load_bias_ is calculated as

    load_bias_ = load_address - min_vaddr;

As a result, the bug is only exposed when the crazy linker encounters
a library in which min_vaddr is not zero.

BUG=385553

Review URL: https://codereview.chromium.org/491433003

Cr-Commit-Position: refs/heads/master@{#290837}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290837 0039d316-1c4b-4281-b951-d872f2087c98
third_party/android_crazy_linker/README.chromium
third_party/android_crazy_linker/src/src/crazy_linker_elf_view.cpp