android_system_core/libunwindstack/tests/files/offline
Christopher Ferris 819f13116e Handle when bias is different in elf headers.
The original code assumed that the load bias in the program headers
would be exactly the same as in eh_frame/eh_frame_hdr/debug_frame.

This isn't guaranteed, so add a section bias for use when creating
a DwarfSection. In addtion, make the load bias and section bias
a signed value. There is no reason that this value needs to be positive,
so don't force it to be.

Add a new offline test that has a different load bias in eh_frame than
in the executable load.

Add additional unit tests to verify the load bias values are set properly.

Clean up the tests in ElfInterfaceTest, making all tests names follow the
same convention.

Bug: 141888859
Bug: 142094469

Test: New units and old unit tests pass on host and taimen.
Change-Id: Ib878123ab5545f0f315c749cfe0d27b012d873ee
2019-10-08 17:36:06 +00:00
..
art_quick_osr_stub_arm Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
bad_eh_frame_hdr_arm64 Small behavioral changes to the unwinder. 2018-01-24 13:20:03 -08:00
debug_frame_first_x86 Small behavioral changes to the unwinder. 2018-01-24 13:20:03 -08:00
debug_frame_load_bias_arm Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
eh_frame_hdr_begin_x86_64 Fix off by 4 error handling eh_frame hdr. 2018-02-10 17:11:23 -08:00
gnu_debugdata_arm Small test clean up. 2018-02-05 13:12:54 -08:00
invalid_elf_offset_arm Set elf_start_offset for invalid elf maps. 2019-06-10 18:39:38 -07:00
jit_debug_arm Add support for displaying soname in an apk. 2019-03-13 17:07:46 -07:00
jit_debug_x86 Add support for displaying soname in an apk. 2019-03-13 17:07:46 -07:00
jit_map_arm Support a map that represents gdb jit elf data. 2018-03-21 17:23:54 -07:00
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
straddle_arm Small test clean up. 2018-02-05 13:12:54 -08:00
straddle_arm64 Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00