summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-10-03 13:35:48 -0700
committerChristopher Ferris <cferris@google.com>2019-10-08 17:36:06 +0000
commit819f13116e25c2724a7daeed9afb3adb2d027f5b (patch)
tree85e5d2e80bb63bf0bdaef49823079b9323268572 /debuggerd/debuggerd_test.cpp
parent6c1668d6600da00aefabd245430d68c395e4b207 (diff)
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
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions