No description
Find a file
Ji-Hwan Lee f186a1819a Support non-zero p_vaddr in first PT_LOAD segment
Before changing mmap() permission to PROT_NONE in alloc_mem_region(),
such libraries once worked with a bug that uses mmap'ed region outside of
memory region allocated by alloc_mem_region().  This possibly incurs
SIGSEGV because it can overwrite memory region of previously loaded
library, but it sometimes worked, depending on loading order.

After PROT_NONE, this caused SIGSEGV earlier during calculation of
si->phdr in load_library(), but this was fixed by:

    75917c84d1  Use mmap to read an ...

Now the behaviour is the same as before applying PROT_NONE in
alloc_mem_region().

This CL fixed the original issue, supporting shared libraries that have
non-zero p_vaddr in first (= with lowest p_vaddr) PT_LOAD segment.

Bug: 6561258
Change-Id: Ib6176dd3e44c4d99a340eb1cbd16fb037586b0bc
2012-06-04 07:44:10 -07:00
libc am 252a5c85: resolved conflicts for merge of e1dd3c28 to jb-dev-plus-aosp 2012-06-02 08:35:07 -07:00
libdl Remove the last references to SuperH. 2012-05-15 17:08:41 -07:00
libm Remove the last references to SuperH. 2012-05-15 17:08:41 -07:00
libstdc++ resolved conflicts for merge of 35d592cc to master 2012-04-16 14:40:26 -07:00
libthread_db MIPS support to libm, libdl and libthread_db 2012-05-04 11:34:40 -07:00
linker Support non-zero p_vaddr in first PT_LOAD segment 2012-06-04 07:44:10 -07:00
.gitignore Merge memory checking functionality from sandbox 2010-02-16 11:43:18 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:11:41 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:04:02 -08:00
ThirdPartyProject.prop add meta-files about 3rd party projects 2010-07-16 11:41:33 -07:00