9d5712c123
The rosegment linker option results in two maps containing the elf data existing. One is an execute map where the code lives, and the other is the read-only segment which contains the elf header information. If the file backing a shared library in memory is not readable, then the new code will attempt to find the read-only map that has the same name as the current execute segment, and that is at offest zero in the file. Add new unit tests for this functionality. Add the missing MapInfoCreateMemoryTest.cpp to the list of tests. Bug: 109657296 Test: Pass new unit tests. Test: All unit libbacktrace/libunwindstack tests pass with rosegment enabled. Change-Id: If8f69e4a067d77b3f2a7c31e2e5cd989a0702a8c |
||
---|---|---|
.. | ||
include/backtrace | ||
testdata | ||
.clang-format | ||
Android.bp | ||
Backtrace.cpp | ||
backtrace_benchmarks.cpp | ||
backtrace_offline_test.cpp | ||
backtrace_read_benchmarks.cpp | ||
backtrace_test.cpp | ||
backtrace_testlib.cpp | ||
backtrace_testlib.h | ||
BacktraceAsyncSafeLog.h | ||
BacktraceCurrent.cpp | ||
BacktraceCurrent.h | ||
BacktraceLog.h | ||
BacktraceMap.cpp | ||
BacktracePtrace.cpp | ||
BacktracePtrace.h | ||
BacktraceTest.h | ||
OWNERS | ||
ThreadEntry.cpp | ||
ThreadEntry.h | ||
UnwindMap.cpp | ||
UnwindMap.h | ||
UnwindStack.cpp | ||
UnwindStack.h | ||
UnwindStackMap.cpp | ||
UnwindStackMap.h |