platform_system_core/libunwindstack
Christopher Ferris beae42bc7f Fix soname reading code.
The dynamic section contained an address, not an offset into the elf
file to indicate where the soname exists. Changed to use the strtab
entries in the section headers to map this address to the actual offset.

Refactor the soname test a bit to make it easier to verify the code.

Bug: 73499044

Test: Passes new unit tests.
Test: Ran unwind_info on the failing shared elf and verified the soinfo
Test: is correct.
Change-Id: I16ba148389bcb9aadd3566fb442dac27f89fe894
2018-02-15 17:57:13 -08:00
..
include/unwindstack Fix soname reading code. 2018-02-15 17:57:13 -08:00
tests Fix soname reading code. 2018-02-15 17:57:13 -08:00
tools Fix soname reading code. 2018-02-15 17:57:13 -08:00
.clang-format Use the 2 space clang format for libunwindstack. 2017-03-21 10:41:45 -07:00
Android.bp Move libdexfile out of runtime 2018-02-14 17:42:59 +00:00
ArmExidx.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
ArmExidx.h Add error propagation into Unwinder/Elf objects. 2018-01-24 17:50:46 -08:00
AsmGetRegsMips.S Add libunwindstack support for Mips and Mips64 2017-12-11 15:44:40 +01:00
AsmGetRegsMips64.S Add libunwindstack support for Mips and Mips64 2017-12-11 15:44:40 +01:00
AsmGetRegsX86.S Fix wrong mov instruction size. 2018-01-25 11:44:19 -08:00
AsmGetRegsX86_64.S Add full support for initing registers. 2017-07-11 12:15:54 -07:00
Check.h Add error propagation into Unwinder/Elf objects. 2018-01-24 17:50:46 -08:00
DexFile.cpp Remove dependency on -no_art variant 2018-02-07 15:19:22 -08:00
DexFile.h Load dex files from ART-specific data structure. 2018-02-02 15:03:00 -08:00
DexFiles.cpp Load dex files from ART-specific data structure. 2018-02-02 15:03:00 -08:00
DwarfCfa.cpp Add error propagation into Unwinder/Elf objects. 2018-01-24 17:50:46 -08:00
DwarfCfa.h Add error propagation into Unwinder/Elf objects. 2018-01-24 17:50:46 -08:00
DwarfDebugFrame.h Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEhFrame.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
DwarfEhFrameWithHdr.cpp Fix off by 4 error handling eh_frame hdr. 2018-02-10 17:11:23 -08:00
DwarfEhFrameWithHdr.h Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEncoding.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfMemory.cpp unwindstack: rename Memory::Read to ReadFully. 2017-11-15 15:38:13 -08:00
DwarfOp.cpp Implement new DEX PC lookup scheme. 2018-02-13 16:45:38 -08:00
DwarfOp.h Implement new DEX PC lookup scheme. 2018-02-13 16:45:38 -08:00
DwarfSection.cpp Implement new DEX PC lookup scheme. 2018-02-13 16:45:38 -08:00
Elf.cpp Add a global elf cache. 2018-01-25 17:11:33 -08:00
ElfInterface.cpp Fix soname reading code. 2018-02-15 17:57:13 -08:00
ElfInterfaceArm.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
ElfInterfaceArm.h Fix issues in libunwindstack. 2017-12-15 11:17:45 -08:00
JitDebug.cpp Load dex files from ART-specific data structure. 2018-02-02 15:03:00 -08:00
Log.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MapInfo.cpp Add a global elf cache. 2018-01-25 17:11:33 -08:00
Maps.cpp Fix issues in libunwindstack. 2017-12-15 11:17:45 -08:00
Memory.cpp Add ability to read jit gdb data. 2018-01-12 11:18:42 -08:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
Regs.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
RegsArm.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
RegsArm64.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
RegsInfo.h Implement new DEX PC lookup scheme. 2018-02-13 16:45:38 -08:00
RegsMips.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
RegsMips64.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
RegsX86.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
RegsX86_64.cpp Expose per arch headers. 2018-02-08 19:29:08 -08:00
Symbols.cpp Add ability to read jit gdb data. 2018-01-12 11:18:42 -08:00
Symbols.h Add ability to read jit gdb data. 2018-01-12 11:18:42 -08:00
Unwinder.cpp Implement new DEX PC lookup scheme. 2018-02-13 16:45:38 -08:00