OSDN Git Service

Support loading libraries to a reserved address.
authorTorne (Richard Coles) <torne@google.com>
Thu, 6 Feb 2014 14:34:21 +0000 (14:34 +0000)
committerTorne (Richard Coles) <torne@google.com>
Thu, 17 Apr 2014 13:22:17 +0000 (14:22 +0100)
commit12bbb9164578b6512b8b07a3fb093858244b7c7b
tree2a32dc3fe2902444aed43647f0ab1d2612507296
parent012cb4583a5f8564059142bb1900ea3a31e7cfa9
Support loading libraries to a reserved address.

Add flags and parameters to android_dlopen_ext() to allow loading a
library at an already-reserved fixed address. If the library to be
loaded will not fit within the space reserved, then the linker will
either fail, or allocate its own address space as usual, according to
which flag has been specified. This behaviour only applies to the
specific library requested; any other libraries loaded as dependencies
will be loaded in the normal fashion.

There is a new gtest included to cover the functionality added.

Bug: 13005501
Change-Id: I5d1810375b20fc51ba6a9b3191a25f9792c687f1
libc/include/android/dlext.h
linker/linker.cpp
linker/linker_phdr.cpp
linker/linker_phdr.h
tests/Android.mk
tests/dlext_test.cpp [new file with mode: 0644]
tests/dlext_test_library.cpp [new file with mode: 0644]