diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2015-06-30 15:10:51 -0700 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2015-06-30 18:45:59 -0700 |
commit | f643eb38c36eb63f612e20dea09fd43ac6a6b360 (patch) | |
tree | b3ecf22ae61f55e3cd37bb04f65d16af2bb16e44 /linker | |
parent | 754f669076ec1edfc0d597aaf89600d4c93f9a7c (diff) | |
download | bionic-f643eb38c36eb63f612e20dea09fd43ac6a6b360.zip bionic-f643eb38c36eb63f612e20dea09fd43ac6a6b360.tar.gz bionic-f643eb38c36eb63f612e20dea09fd43ac6a6b360.tar.bz2 |
Improve personality initialization
1. Personality parameter should be unsigned int (not long)
2. Do not reset bits outside of PER_MASK when setting
personality value.
3. Set personality for static executables.
Bug: http://b/21900686
Change-Id: I4c7e34079cbd59b818ce221eed325c05b9bb2303
Diffstat (limited to 'linker')
-rw-r--r-- | linker/linker.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp index f7b58c4..60f8489 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -37,7 +37,6 @@ #include <string.h> #include <sys/mman.h> #include <sys/param.h> -#include <sys/personality.h> #include <unistd.h> #include <new> @@ -3111,12 +3110,6 @@ static ElfW(Addr) __linker_init_post_relocation(KernelArgumentBlock& args, ElfW( ldpreload_env = getenv("LD_PRELOAD"); } -#if !defined(__LP64__) - if (personality(PER_LINUX32) == -1) { - __libc_fatal("error setting PER_LINUX32 personality: %s", strerror(errno)); - } -#endif - INFO("[ android linker & debugger ]"); soinfo* si = soinfo_alloc(args.argv[0], nullptr, 0, RTLD_GLOBAL); |