diff options
author | Dimitry Ivanov <dimitry@google.com> | 2017-02-23 11:53:43 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2017-02-24 16:56:38 -0800 |
commit | 2a6955e040f24b31a2dfe829f47e35ac91733489 (patch) | |
tree | e91c30cf688ab2fd0d55546042d3496f489db7de /linker/linker_main.cpp | |
parent | 5927b04ce7d9d4727a4a644f8af4040b8dab5d0a (diff) |
loader: set PT_INTERP to itself
Some versions of kernel set AT_BASE to 0
if dynamic loader does not have PT_INTERP
set.
Bug: http://b/30739481
Test: run /system/bin/linker64 and /system/bin/linker
Change-Id: I1b67777166fe917d3ee1a97277045ca6f5db0084
Diffstat (limited to 'linker/linker_main.cpp')
-rw-r--r-- | linker/linker_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker_main.cpp b/linker/linker_main.cpp index d52b1d6d7..d037a1832 100644 --- a/linker/linker_main.cpp +++ b/linker/linker_main.cpp @@ -496,7 +496,7 @@ extern "C" ElfW(Addr) __linker_init(void* raw_args) { // see also https://code.google.com/p/android/issues/detail?id=63174 if (reinterpret_cast<ElfW(Addr)>(&_start) == entry_point) { __libc_format_fd(STDOUT_FILENO, - "This is %s, the helper program for shared library executables.\n", + "This is %s, the helper program for dynamic executables.\n", args.argv[0]); exit(0); } |