commit | 75917c84d16c35b8fceff6977fa717a3de9ef65d | [log] [tgz] |
---|---|---|
author | Ji-Hwan Lee <jihwan@google.com> | Fri May 25 22:36:00 2012 +0900 |
committer | Ji-Hwan Lee <jihwan@google.com> | Sat May 26 06:15:50 2012 +0900 |
tree | a599da04e2e062dc747d27eed333b774b3df9cbb | |
parent | 15ed08d065e865c7a1a2937e429a1fe80a870461 [diff] |
Use mmap to read an initial ELF header of library Also, fixes SIGSEV during calculation of si->phdr in load_library(), which is caused by accessing PHDR area, which is not guaranteed to be loaded. Note that this usually does not happen because program header area is covered by immediately following PT_LOAD entry. But it does not hold always. Bug: 6561258 Change-Id: Ie376253c773b5420279ca89044e81b1aad5a5736