summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-10-29 10:21:11 -0700
committerChristopher Ferris <cferris@google.com>2019-10-29 18:39:30 -0700
commit4ca98e18a44502575083d3a5d6867017969e3d96 (patch)
tree326d083ed2071089e46a87174fbb9065cb9cfd3d /trusty/coverage/coverage_test.cpp
parent85f5a4449cbb13205ceeaf5f3cb04759a40169f8 (diff)
Fix potential bad info in eh_frame_hdr.
Due to a bug, an elf can have FDEs with a length of zero, while still having another FDE for the same pc with a non-zero length. The eh_frame_hdr can sometimes point to the zero length FDE, but it should have pointed to the non-zero length FDE. In order to fix this, if the eh_frame_hdr points at the zero length FDE then try and find the real FDE directly from eh_frame. The change cleans up and removes unused variables from DwarfEhFrameWithHdr and changes the objects so that all of the DwarfSection objects and DwarfEhFrameWithHdr object inherit from the same class. Add new unit tests to verify this functionality. Bug: 142483624 Test: Unit tests all pass. Change-Id: I128a916e3ba378931de7d44ee15e57e24d4073df
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions