OSDN Git Service

loader: stop relying on AT_BASE
authorDimitry Ivanov <dimitry@google.com>
Thu, 23 Mar 2017 23:17:15 +0000 (16:17 -0700)
committerDimitry Ivanov <dimitry@google.com>
Fri, 24 Mar 2017 00:12:59 +0000 (17:12 -0700)
commit9b1cc4bb9cd84c2a52b8183a418e9dbb41f59959
tree30c02abec3509a67589add48341d475c78e71f4e
parente98d1e68ce37bb9238e3c50ea6b01d1057adb2eb
loader: stop relying on AT_BASE

android loader should not rely on the fact
that AT_BASE is set because kernel currently
does not set it when linker is run standalone
(The linker does not have PT_INTERP set)

This commit replaces AT_BASE with calculated value.

Bug: http://b/30739481
Bug: http://b/35890756
Test: run bionic-unit-tests --gtest_filter=dl*
Change-Id: Ic2eb73e4452624b1f2e05f46e99e4c17df0bbc3f
linker/Android.bp
linker/linker_main.cpp