Add command line tool for creating mini-debug-info for native code.
Mini-debug-info for native code is currently created with bash script,
which works, but misses some optimizations that the ART compiler does.
This CL adds tool based on ART code-base, with the following features:
* CIE entries are deduplicated to save space (usually one is needed).
* FDE entries are sorted, which significantly improves compression.
* Non-function and zero-sized function symbols are excluded.
* Symbols are sorted by address to allow binary search.
* Compressed data is split to blocks to allow random-access reads.
The space optimizations and the better random access balances,
so the overall generated file size remains approximately same.
Bug: 110133331
Test: manually check the generated data using readelf
Change-Id: I4ed8deaee647d5ee4dfb0846f316e888f060b98e
6 files changed