android_system_core/libunwindstack/tests
Christopher Ferris f882a38864 Fix ARM program header values used for exidx.
Before, I was using p_vaddr to get the offset into the elf file where
the exidx frame starts. I changed that to use p_offset since this already
has the load bias offset in it and some elf files do not set p_vaddr
properly.

Also, use p_filesz instead of p_memsz, since again, some elf files do
not set p_memsz to the same as p_filesz.

Bug: 110704153

Test: All libbacktrace/libunwindstack unit tests pass.
Test: Randomly unwind process on a walleye.
Test: Verified that this properly dumps and unwinds the shared
Test: library that sets p_vaddr and p_memsz differently.
Change-Id: Ic7b1e5d07439f4636fa02cd884a8727a5737372b
2018-06-22 16:48:02 -07:00
..
files Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ArmExidxDecodeTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ArmExidxExtractTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DexFileData.h
DexFileTest.cpp
DexFilesTest.cpp
DwarfCfaLogTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DwarfCfaTest.cpp
DwarfDebugFrameTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DwarfEhFrameTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DwarfEhFrameWithHdrTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DwarfMemoryTest.cpp
DwarfOpLogTest.cpp
DwarfOpTest.cpp
DwarfSectionImplTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DwarfSectionTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ElfCacheTest.cpp
ElfFake.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ElfFake.h Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ElfInterfaceArmTest.cpp Fix ARM program header values used for exidx. 2018-06-22 16:48:02 -07:00
ElfInterfaceTest.cpp Fix ARM program header values used for exidx. 2018-06-22 16:48:02 -07:00
ElfTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ElfTestUtils.cpp
ElfTestUtils.h
GenGnuDebugdata.cpp
JitDebugTest.cpp
LocalUnwinderTest.cpp Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
LogFake.cpp
LogFake.h
MapInfoCreateMemoryTest.cpp
MapInfoGetElfTest.cpp
MapInfoGetLoadBiasTest.cpp
MapsTest.cpp
MemoryBufferTest.cpp
MemoryFake.cpp
MemoryFake.h
MemoryFileTest.cpp
MemoryLocalTest.cpp
MemoryOfflineBufferTest.cpp Add a MemoryOfflineBuffer object. 2018-04-03 18:37:52 -07:00
MemoryOfflineTest.cpp
MemoryRangeTest.cpp
MemoryRemoteTest.cpp
MemoryTest.cpp
RegsFake.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsIterateTest.cpp
RegsStepIfSignalHandlerTest.cpp
RegsTest.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
SymbolsTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
TestLocal.cpp Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
TestUtils.h
UnwindOfflineTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
UnwindTest.cpp Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
UnwinderTest.cpp