OSDN Git Service

Fix linker crashes during unknown symbol lookup
authorSergey Melnikov <sergey.melnikov@intel.com>
Thu, 31 Oct 2013 14:02:12 +0000 (18:02 +0400)
committerElliott Hughes <enh@google.com>
Thu, 31 Oct 2013 22:06:20 +0000 (15:06 -0700)
commitebd506c69e12b6dcaf5be94cc8ed1b53af299f9f
tree79913ebffdfcc7a4b20d78a477b9d69340d477f9
parentcc9b7456b66b7c7c218a9d1f00d7aef1f5ecf409
Fix linker crashes during unknown symbol lookup

Integration of kernel VDSO into internal bionic data structures using
common functions.
Fix for dl_iterate_phdr function: the function provides incorrect
address of object in case of nonzero virtual and base addresses.
Location in address space of a particular program header should be
calculated using the formula:  addr = base_addr + virtual_addr.

Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com>
Change-Id: Ie2ab4257fd456242aab8afed0bd5bd6b29e81d6d
linker/linker.cpp
tests/dlfcn_test.cpp