From 76ba83cce2c375c9e3edaaad52fdcb916ebdd3c1 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Thu, 14 Mar 2013 15:23:30 -0700 Subject: [PATCH] Revert "init: Set ADDR_COMPAT_LAYOUT before spawning processes." This logic has been moved to platform/frameworks/base commit 8a0a929422682ba3eb6a205dc6c0638e68b909de and is no longer needed here. This reverts commit 01b1dee0ab7ad649760f9d8a7cead2a3f6d9cf70. --- init/init.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/init/init.c b/init/init.c index 48d855972..bfaf983b4 100755 --- a/init/init.c +++ b/init/init.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include @@ -242,21 +241,6 @@ void service_start(struct service *svc, const char *dynamic_args) int fd, sz; umask(077); -#ifdef __arm__ - /* - * b/7188322 - Temporarily revert to the compat memory layout - * to avoid breaking third party apps. - * - * THIS WILL GO AWAY IN A FUTURE ANDROID RELEASE. - * - * http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7dbaa466 - * changes the kernel mapping from bottom up to top-down. - * This breaks some programs which improperly embed - * an out of date copy of Android's linker. - */ - int current = personality(0xffffFFFF); - personality(current | ADDR_COMPAT_LAYOUT); -#endif if (properties_inited()) { get_property_workspace(&fd, &sz); sprintf(tmp, "%d,%d", dup(fd), sz);