platform_system_core/debuggerd
Martin Stjernholm ae695c9fad Remove use of static libdexfile to avoid linking in ART internal code.
- Create a static library libunwindstack_no_dex without DEX support.
- Use it in libdebuggerd_handler_fallback, whose only use is in the
  linker, which shouldn't need that support.
- Use it in init_first_stage, which doesn't need DEX support either.
- Also need a libbacktrace_no_dex since it's in the dependency chain
  from init_first_stage to libunwindstack_no_dex.

Also restrict the *_no_dex libs and libdebuggerd_handler_fallback as
much as possible to avoid inadvertent use of these reduced
functionality libs.

Test: m init_first_stage on Cuttlefish
  where BOARD_BUILD_SYSTEM_ROOT_IMAGE=false
Test: m system_image com.android.runtime
Test: Build & boot
Test: atest linker-unit-tests libunwindstack_unit_test debuggerd_test
Bug: 142944931
Bug: 151466650
Change-Id: Iaacb29bfe602f3ca12a00a712e2a64c45ff0118b
Merged-In: Iaacb29bfe602f3ca12a00a712e2a64c45ff0118b
2020-03-24 21:48:00 +00:00
..
client [GWP-ASan] Add GWP-ASan information to tombstones. 2020-02-18 16:49:50 -08:00
common/include tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
crasher debuggerd: switch to using platform headers for DEBUGGER_SIGNAL. 2019-12-17 16:36:05 -08:00
handler [GWP-ASan] Add GWP-ASan information to tombstones. 2020-02-18 16:49:50 -08:00
include/debuggerd debuggerd: add an opt-out for OEMs that would rather collect core dumps. 2020-03-06 09:21:45 -08:00
libdebuggerd [GWP-ASan] Add GWP-ASan information to tombstones. 2020-02-18 16:49:50 -08:00
seccomp_policy debuggerd seccomp: explain why we define PROT_READ/WRITE. 2018-02-18 23:50:19 -08:00
tombstoned debuggerd: increase the default limit on tombstones to 32. 2019-09-26 14:36:01 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Remove use of static libdexfile to avoid linking in ART internal code. 2020-03-24 21:48:00 +00:00
crash_dump.cpp [GWP-ASan] Add GWP-ASan information to tombstones. 2020-02-18 16:49:50 -08:00
debuggerd.cpp debuggerd: add support for Java traces. 2018-06-14 15:40:06 -07:00
debuggerd_benchmark.cpp debuggerd: add pause time benchmark. 2017-12-19 16:36:04 -08:00
debuggerd_test.cpp debuggerd: switch to using platform headers for DEBUGGER_SIGNAL. 2019-12-17 16:36:05 -08:00
MODULE_LICENSE_APACHE2
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
protocol.h [GWP-ASan] Add GWP-ASan information to tombstones. 2020-02-18 16:49:50 -08:00
util.cpp debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00
util.h debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00