006f9ad891
When bionic's dynamic linker processes the .dynamic section of a MIPS ELF binary and encounters the DT_MIPS_RLD_MAP dynamic array tag, it calculates the address of where to write a pointer to the _r_debug structure. The current implementation simply reads the value given in the d_ptr field and writes the pointer address to that location. However, this value has to be adjusted to reflect the real load address of the binary. Otherwise the linker will write to a faulty location possibly resulting in a crash when linking a MIPS binary that includes DT_MIPS_RLD_MAP. This change corrects that problem. Change-Id: I1a91874f7ab47289001fe72d9016660c14c70362 Signed-off-by: Benjamin Adolphi <b.adolphi@gmail.com> |
||
---|---|---|
.. | ||
arch | ||
Android.mk | ||
debugger.cpp | ||
dlfcn.cpp | ||
linker_debug.h | ||
linker_environ.cpp | ||
linker_environ.h | ||
linker_executable.mk | ||
linker_phdr.cpp | ||
linker_phdr.h | ||
linker.cpp | ||
linker.h | ||
linker.mk | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE | ||
rt.cpp |