summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Dudani <adudani@quicinc.com>2009-10-02 20:23:39 -0700
committerAjay Dudani <adudani@quicinc.com>2009-10-02 20:28:18 -0700
commit5cef9a85b8763e1ea00ae65256e20d1377d5d27f (patch)
tree55173212f18cacb10fd5355cd53171763e30b623
parente984c60716eeac062736d5961d9f48248ad7bfa1 (diff)
downloadbionic-5cef9a85b8763e1ea00ae65256e20d1377d5d27f.zip
bionic-5cef9a85b8763e1ea00ae65256e20d1377d5d27f.tar.gz
bionic-5cef9a85b8763e1ea00ae65256e20d1377d5d27f.tar.bz2
bionic: Update virtual memory map as mmap area is moved with 2G VM split
-rw-r--r--libc/bionic/pthread.c2
-rw-r--r--linker/linker.c2
-rw-r--r--linker/linker.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c
index 017466c..ec3c459 100644
--- a/libc/bionic/pthread.c
+++ b/libc/bionic/pthread.c
@@ -55,7 +55,7 @@ void _thread_created_hook(pid_t thread_id) __attribute__((noinline));
#define PTHREAD_ATTR_FLAG_USER_STACK 0x00000002
#define DEFAULT_STACKSIZE (1024 * 1024)
-#define STACKBASE 0x60000000
+#define STACKBASE 0x10000000
static uint8_t * gStackBase = (uint8_t *)STACKBASE;
diff --git a/linker/linker.c b/linker/linker.c
index 292cf46..789a828 100644
--- a/linker/linker.c
+++ b/linker/linker.c
@@ -698,7 +698,7 @@ get_lib_extents(int fd, const char *name, void *__hdr, unsigned *total_sz)
static int reserve_mem_region(soinfo *si)
{
void *base = mmap((void *)si->base, si->size, PROT_READ | PROT_EXEC,
- MAP_PRIVATE | MAP_FIXED | MAP_ANONYMOUS, -1, 0);
+ MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (base == MAP_FAILED) {
DL_ERR("%5d can NOT map (%sprelinked) library '%s' at 0x%08x "
"as requested, will try general pool: %d (%s)",
diff --git a/linker/linker.h b/linker/linker.h
index ec7e139..77044bf 100644
--- a/linker/linker.h
+++ b/linker/linker.h
@@ -147,8 +147,8 @@ struct soinfo
extern soinfo libdl_info;
/* these must all be powers of two */
-#define LIBBASE 0x10000000
-#define LIBLAST 0x20000000
+#define LIBBASE 0x40000000
+#define LIBLAST 0x50000000
#define LIBINC 0x00100000