HomePhabricator

Fix invalid memory access on android x86

Authored by compnerd on Apr 5 2017, 11:33 AM.

Description

Fix invalid memory access on android x86

On certain versions of android x86, the main module app_process is not
built as PIE. When accessing the PT_GNU_EH_FRAME_HDR in such a
scenario, the dlpi_addr is 0, but the virtual address is not
relocated. Manually rebase the address to avoid an invalid memory
access.

llvm-svn: 299575

Details

Committed
compnerdApr 5 2017, 11:33 AM
Parents
rGdc06518ff4d4: clang-format: Support formatting utf-8 character literals in C++11+ mode.
Branches
Unknown
Tags
Unknown