android_system_core/libunwindstack/tests/files/offline
Christopher Ferris f0c82e7bad Use elf offset in signal step check.
The function StepIfSignalHandler assumed that the rel_pc passed
to it was actually an elf offset. A new version of clang created a libc.so
that has a load bias, so tests unwinding through a signal handler
would fail on arm. On other ABIs, there is unwind information that could
be used instead, so the unwind still worked.

The fix is to subtract the load bias from the rel_pc to get an elf
offset to pass to the Register StepIfSignalHandler functions. Change all
of the Register funtions to make it clear what the first parameter means.

Add a unit test for this new code. Also, add an offline test for
this case.

Bug: 145683525

Test: Ran unit tests using the new clang and the old clang.
Change-Id: I3e249653b79bcad6d3a56411a7911fde4888e9d6
2019-12-04 22:29:59 +00:00
..
art_quick_osr_stub_arm Fix support finding global variables. 2019-12-03 17:35:00 -08:00
bad_eh_frame_hdr_arm64
debug_frame_first_x86
debug_frame_load_bias_arm
eh_frame_bias_x86 Fix handling of PT_GNU_EH_FRAME. 2019-10-21 19:11:22 -07:00
eh_frame_hdr_begin_x86_64
gnu_debugdata_arm
invalid_elf_offset_arm Set elf_start_offset for invalid elf maps. 2019-06-10 18:39:38 -07:00
jit_debug_arm Fix support finding global variables. 2019-12-03 17:35:00 -08:00
jit_debug_x86 Fix support finding global variables. 2019-12-03 17:35:00 -08:00
jit_map_arm
load_bias_different_section_bias_arm64 Handle when bias is different in elf headers. 2019-10-08 17:36:06 +00:00
load_bias_ro_rx_x86_64 Fix missing load bias. 2019-07-09 10:22:36 -07:00
offset_arm Fix offsets when shared lib split across maps. 2018-12-18 11:22:14 -08:00
shared_lib_in_apk_arm64 Fix handling of ro segments for embedded libs. 2018-12-11 19:16:29 -08:00
shared_lib_in_apk_memory_only_arm64 Fix handling of ro segments for embedded libs. 2018-12-11 19:16:29 -08:00
shared_lib_in_apk_single_map_arm64 Fix missing offset for apk. 2019-03-12 16:00:55 -07:00
signal_load_bias_arm Use elf offset in signal step check. 2019-12-04 22:29:59 +00:00
straddle_arm
straddle_arm64