platform_system_core/libbacktrace
Christopher Ferris 9d5712c123 Implement support for linker rosegment option.
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
2018-10-03 20:48:45 -07:00
..
include/backtrace Revert^2 "Prepare to fail in RefBase destructor if count is untouched" 2018-08-08 16:30:12 -07:00
testdata Use new unwinder for offline in libbacktrace. 2018-01-29 10:41:11 -08:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
Android.bp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
Backtrace.cpp Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
backtrace_benchmarks.cpp bionic supplies PR_SET_VMA now. 2018-08-22 12:06:20 -07:00
backtrace_offline_test.cpp Load libbacktrace_test.so explicitly. 2018-10-03 12:42:38 -07:00
backtrace_read_benchmarks.cpp Add method to detect remote read function to use. 2017-12-07 19:00:00 -08:00
backtrace_test.cpp Load libbacktrace_test.so explicitly. 2018-10-03 12:42:38 -07:00
backtrace_testlib.cpp Use new unwinder for offline in libbacktrace. 2018-01-29 10:41:11 -08:00
backtrace_testlib.h Use new unwinder for offline in libbacktrace. 2018-01-29 10:41:11 -08:00
BacktraceAsyncSafeLog.h Use async safe logging in signal handlers. 2017-05-04 17:15:17 -07:00
BacktraceCurrent.cpp Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
BacktraceCurrent.h Use new unwinder for offline in libbacktrace. 2018-01-29 10:41:11 -08:00
BacktraceLog.h liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
BacktraceMap.cpp Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
BacktracePtrace.cpp Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
BacktracePtrace.h Change all uintptr_t to uint64_t in API. 2018-01-18 17:26:20 -08:00
BacktraceTest.h Load libbacktrace_test.so explicitly. 2018-10-03 12:42:38 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
ThreadEntry.cpp Use async safe logging in signal handlers. 2017-05-04 17:15:17 -07:00
ThreadEntry.h Allow calling GetFunctionName before unwinding. 2017-03-21 14:21:49 -07:00
UnwindMap.cpp Change all uintptr_t to uint64_t in API. 2018-01-18 17:26:20 -08:00
UnwindMap.h Change all uintptr_t to uint64_t in API. 2018-01-18 17:26:20 -08:00
UnwindStack.cpp Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
UnwindStack.h Use new unwinder for offline in libbacktrace. 2018-01-29 10:41:11 -08:00
UnwindStackMap.cpp Add a MemoryOfflineBuffer object. 2018-04-03 18:37:52 -07:00
UnwindStackMap.h Add a MemoryOfflineBuffer object. 2018-04-03 18:37:52 -07:00