Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2810d0f2 authored by Florian Mayer's avatar Florian Mayer Committed by android-build-merger
Browse files

Merge "Further document MapInfo::elf_offset." am: 07001d90

am: 0d3d0cd8

Change-Id: I9663e95d160c8a191ff8a1f2efa7c43959f83b3a
parents 810a10ff 0d3d0cd8
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -59,11 +59,14 @@ struct MapInfo {
  uint16_t flags = 0;
  std::string name;
  std::shared_ptr<Elf> elf;
  // The offset of the beginning of this mapping to the beginning of the
  // ELF file.
  // elf_offset == offset - elf_start_offset.
  // This value is only non-zero if the offset is non-zero but there is
  // no elf signature found at that offset.
  uint64_t elf_offset = 0;
  // This value is the offset from the map in memory that is the start
  // of the elf. This is not equal to offset when the linker splits
  // This value is the offset into the file of the map in memory that is the
  // start of the elf. This is not equal to offset when the linker splits
  // shared libraries into a read-only and read-execute map.
  uint64_t elf_start_offset = 0;