android_system_core/libunwindstack/tests
Florian Mayer 249c90ff17 Fix missing load bias.
There are binaries that have non-executable LOAD with p_offset=0.

E.g.,

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
  PHDR           0x000040 0x0000000000400040 0x0000000000400040 0x0002a0 0x0002a0 R   0x8
  INTERP         0x0002e0 0x00000000004002e0 0x00000000004002e0 0x00001c 0x00001c R   0x1
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
  LOAD           0x000000 0x0000000000400000 0x0000000000400000 0x0059e0 0x0059e0 R   0x1000
  LOAD           0x006000 0x0000000000406000 0x0000000000406000 0x10f2b05 0x10f2b05 R E 0x1000
  LOAD           0x10f9000 0x00000000014f9000 0x00000000014f9000 0x70f634 0x70f634 R   0x1000
  LOAD           0x1808f18 0x0000000001c09f18 0x0000000001c09f18 0x089fc8 0x0a7ab8 RW  0x1000
  DYNAMIC        0x1864ce0 0x0000000001c65ce0 0x0000000001c65ce0 0x000240 0x000240 RW  0x8
  NOTE           0x0002fc 0x00000000004002fc 0x00000000004002fc 0x000020 0x000020 R   0x4
  TLS            0x1808f18 0x0000000001c09f18 0x0000000001c09f18 0x000010 0x000010 R   0x8
  GNU_EH_FRAME   0x11abde8 0x00000000015abde8 0x00000000015abde8 0x14484c 0x14484c R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0x10
  GNU_RELRO      0x1808f18 0x0000000001c09f18 0x0000000001c09f18 0x05c0e8 0x05c0e8 R   0x1

Test: host libunwindstack_test passes.
Test: Modified unit tests and new offline test.

Change-Id: I3992f712be238c7d4109556580b5dcc71175fe19
2019-07-09 10:22:36 -07:00
..
files Fix missing load bias. 2019-07-09 10:22:36 -07:00
ArmExidxDecodeTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
ArmExidxExtractTest.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
DexFileData.h Load dex files from ART-specific data structure. 2018-02-02 15:03:00 -08:00
DexFilesTest.cpp Revert "Check for data races when reading JIT/DEX entries." 2019-04-05 18:23:32 +00:00
DexFileTest.cpp Revert "Check for data races when reading JIT/DEX entries." 2019-04-05 18:23:32 +00:00
DwarfCfaLogTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfCfaTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfDebugFrameTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfEhFrameTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfEhFrameWithHdrTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfMemoryTest.cpp Remove CHECK in AdjustEncodedValue. 2018-12-20 08:40:58 -08:00
DwarfOpLogTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfOpTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfSectionImplTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfSectionTest.cpp Refactor the DwarfSection classes. 2018-06-27 14:52:21 -07:00
ElfCacheTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
ElfFake.cpp Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
ElfFake.h Add support for displaying soname in an apk. 2019-03-13 17:07:46 -07:00
ElfInterfaceArmTest.cpp Remove Memory::ReadField. 2018-07-12 12:45:31 -07:00
ElfInterfaceTest.cpp Fix missing load bias. 2019-07-09 10:22:36 -07:00
ElfTest.cpp Fix pc/function name for signal handler frame. 2019-04-12 17:23:18 -07:00
ElfTestUtils.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
ElfTestUtils.h Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
GenGnuDebugdata.cpp Add .gnu_debugdata support. 2017-06-28 15:23:10 -07:00
JitDebugTest.cpp Revert "Check for data races when reading JIT/DEX entries." 2019-04-05 18:23:32 +00:00
LocalUnwinderTest.cpp Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
LogFake.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
LogFake.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MapInfoCreateMemoryTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
MapInfoGetBuildIDTest.cpp Avoid signed extension of chars for build ids. 2019-01-30 12:09:11 -08:00
MapInfoGetElfTest.cpp Add support for displaying soname in an apk. 2019-03-13 17:07:46 -07:00
MapInfoGetLoadBiasTest.cpp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MapInfoTest.cpp Add support for UnwinderFromPid object. 2019-01-16 15:13:25 -08:00
MapsTest.cpp Fix copy / move behaviour of Maps object. 2019-03-05 13:05:36 +00:00
MemoryBufferTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryCacheTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryFake.cpp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MemoryFake.h Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MemoryFileTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryLocalTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryOfflineBufferTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
MemoryOfflineTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryRangesTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryRangeTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryRemoteTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryTest.cpp Remove Memory::ReadField. 2018-07-12 12:45:31 -07:00
RegsFake.h Add BuildId to frame information. 2019-03-26 08:04:40 -07:00
RegsInfoTest.cpp Fix off by one error. 2018-10-23 18:10:41 +01:00
RegsIterateTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
RegsStepIfSignalHandlerTest.cpp Always set the sp reg to the cfa for DWARF. 2018-03-16 23:38:07 -07:00
RegsTest.cpp Fix offsets when shared lib split across maps. 2018-12-18 11:22:14 -08:00
SymbolsTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
TestLocal.cpp Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
TestUtils.cpp Add a few leak check tests. 2019-01-25 12:35:19 -08:00
TestUtils.h Add a few leak check tests. 2019-01-25 12:35:19 -08:00
UnwinderTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
UnwindOfflineTest.cpp Fix missing load bias. 2019-07-09 10:22:36 -07:00
UnwindTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00