commit | e4e13f35eb0b220d159870e662daf59010f3680e | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Dec 15 11:36:51 2017 -0800 |
committer | Yabin Cui <yabinc@google.com> | Fri Dec 15 11:36:51 2017 -0800 |
tree | cb461c8948620f3bda4fe331149cd87066500a6f | |
parent | f8ded6b9d7e3bd135a6cff8b7fccef1a9252903c [diff] |
simpleperf: check elf files with broken section tables. Some applications ship elf files with broken section tables. This crashes simpleperf when it tries to read symbols from the broken elf files while doing system wide profiling. So fix it by checking existence of symbol sections before reading symbols. Bug: None. Test: simpleperf_unit_test. Change-Id: If581cd2d83df55f1cadc253222d5d8242ebddafd