platform_system_core/libunwindstack/tools
Christopher Ferris 5838e53b97 Fix handling of PT_GNU_EH_FRAME.
The bias for the PT_GNU_EH_FRAME was using the paddr instead of vaddr.
This doesn't match the way the load bias is calculated, which always
use vaddr - offset, so change to use vaddr.

Found on an old x86 device that has a vdso that sets vaddr differently
from paddr.

Add a new offline test to catch this case and update the elf interface
unit tests.

Also, fix a small bug in the unwind_for_offline tool.

Bug: 142365899

Test: Unit tests pass.
Change-Id: I5f0bf062dd8ee45aa8553189ba493ec962e0b059
2019-10-21 19:11:22 -07:00
..
unwind.cpp Revert "Check for data races when reading JIT/DEX entries." 2019-04-05 18:23:32 +00:00
unwind_for_offline.cpp Fix handling of PT_GNU_EH_FRAME. 2019-10-21 19:11:22 -07:00
unwind_info.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
unwind_reg_info.cpp Fix unwind_reg_info tool. 2019-08-27 13:41:50 -07:00
unwind_symbols.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00